Mercurial > mozilla > hg > DocumentIt
comparison document_it.py @ 7:6bf82220a04c
more stubbing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 01 Aug 2011 22:51:12 -0700 |
parents | 5a4c1339b2f9 |
children | f7fa35f972f4 |
comparison
equal
deleted
inserted
replaced
6:5a4c1339b2f9 | 7:6bf82220a04c |
---|---|
94 # print help if no manifests given | 94 # print help if no manifests given |
95 if not args: | 95 if not args: |
96 parser.print_help() | 96 parser.print_help() |
97 parser.exit() | 97 parser.exit() |
98 | 98 |
99 # get base url | |
100 if '://' in options.dest: | |
101 baseurl = options.dest | |
102 else: | |
103 baseurl = 'file://' + options.dest | |
104 | |
99 # read the manifests | 105 # read the manifests |
100 files = [] | 106 files = [] |
101 for manifest in manifests: | 107 for manifest in manifests: |
102 for item in parse_manifest(manifest): | 108 for item in parse_manifest(manifest): |
103 if item not in files: | 109 if item not in files: |
104 files.append(item) | 110 files.append(item) |
105 if options.list: | 111 if options.list: |
106 for item in files: | 112 for item in files: |
107 print '%s -> %s' % (item[0], item[1]) | 113 print '%s -> %s/%s' % (item[0], baseurl.rstrip('/'), item[1].lstrip('/')) |
108 | 114 |
109 | 115 |
110 # render and upload READMEs | 116 # render and upload READMEs |
111 if options.directory: | 117 if options.directory: |
112 pass | 118 pass |