# HG changeset patch
# User Jeff Hammel <jhammel@mozilla.com>
# Date 1312264272 25200
# Node ID 6bf82220a04cee67c507df3a67883e86f40ff667
# Parent  5a4c1339b2f95f15e00af1a0249b841d8aa7082e
more stubbing

diff -r 5a4c1339b2f9 -r 6bf82220a04c document_it.py
--- a/document_it.py	Mon Aug 01 22:05:30 2011 -0700
+++ b/document_it.py	Mon Aug 01 22:51:12 2011 -0700
@@ -96,6 +96,12 @@
         parser.print_help()
         parser.exit()
 
+    # get base url
+    if '://' in options.dest:
+        baseurl = options.dest
+    else:
+        baseurl = 'file://' + options.dest
+
     # read the manifests
     files = []
     for manifest in manifests:
@@ -104,7 +110,7 @@
                 files.append(item)
     if options.list:
         for item in files:
-            print '%s -> %s' % (item[0], item[1])
+            print '%s -> %s/%s' % (item[0], baseurl.rstrip('/'), item[1].lstrip('/'))
     
 
     # render and upload READMEs
diff -r 5a4c1339b2f9 -r 6bf82220a04c example.manifest
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/example.manifest	Mon Aug 01 22:51:12 2011 -0700
@@ -0,0 +1,3 @@
+#!/usr/bin/env document-it
+
+README.txt
\ No newline at end of file