Add support for sidebar3.md, and do general cleanups
$cd .../docs/source.android.com/
$git checkout master
$python scripts/build.py
[...]
$find out/ -type f | sort | xargs md5sum > old_script.txt
$md5sum old_script.txt
cb96f8ae932fd7444409bd774eb5775a old_script.txt
$git checkout cleanup
$python scripts/build.py
[...]
$find out/ -type f | sort | xargs md5sum > new_script.txt
$md5sum new_script.txt
cb96f8ae932fd7444409bd774eb5775a new_script.txt
Change-Id: Ie85d2879df75b8f27a32f64a0768596ce4026ca0
diff --git a/scripts/micro-httpd.py b/scripts/micro-httpd.py
index 31ad1ea..9292dab 100755
--- a/scripts/micro-httpd.py
+++ b/scripts/micro-httpd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.4
+#!/usr/bin/env python
# Copyright (C) 2010 The Android Open Source Project
#
@@ -14,10 +14,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import SimpleHTTPServer, SocketServer, os
+import SimpleHTTPServer
+import SocketServer
+import os
+
PORT = int(os.environ.get('HTTP_PORT', 8080))
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
-httpd = SocketServer.TCPServer(("0.0.0.0", PORT), Handler)
+httpd = SocketServer.TCPServer(('0.0.0.0', PORT), Handler)
httpd.allow_reuse_address = True
-print "Serving on port %d" % PORT
+print 'Serving on port %d' % PORT
httpd.serve_forever()
+