-rwxr-xr-x | scripts/builder/main.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/builder/main.py b/scripts/builder/main.py index b9fe04a..ecdbf6a 100755 --- a/scripts/builder/main.py +++ b/scripts/builder/main.py | |||
@@ -147,17 +147,17 @@ def main (): | |||
147 | parameters = list(itertools.islice(sys.argv, 1, None)) | 147 | parameters = list(itertools.islice(sys.argv, 1, None)) |
148 | 148 | ||
149 | sys.path.append(os.path.join(scriptDir(), 'backends')) | 149 | sys.path.append(os.path.join(scriptDir(), 'backends')) |
150 | sys.path.append(os.path.join(scriptDir(), 'frontends')) | 150 | sys.path.append(os.path.join(scriptDir(), 'frontends')) |
151 | currentRepository = repository.repositoryWithPath(projectBaseDir()) | 151 | currentRepository = repository.repositoryWithPath(projectBaseDir()) |
152 | 152 | ||
153 | clean() | 153 | clean() |
154 | versions = list(itertools.takewhile(lambda x: not x.startswith('--'), parameters)) | 154 | versions = list(itertools.takewhile(lambda x: not x.startswith('--'), parameters)) |
155 | settings['versions'] = versions; #['debug', 'install', 'development'] | 155 | settings['versions'] = versions; #['debug', 'install', 'development', 'checksum'] |
156 | parameters = deque(itertools.dropwhile(lambda x: not x.startswith('--'), parameters)) | 156 | parameters = deque(itertools.dropwhile(lambda x: not x.startswith('--'), parameters)) |
157 | 157 | ||
158 | if len(parameters) > 0: | 158 | if len(parameters) > 0: |
159 | parameter = parameters.popleft() | 159 | parameter = parameters.popleft() |
160 | if parameter == "--ALL": | 160 | if parameter == "--ALL": |
161 | settings['frontends'] = allFrontends() | 161 | settings['frontends'] = allFrontends() |
162 | settings['backends'] = allBackends() | 162 | settings['backends'] = allBackends() |
163 | else: | 163 | else: |
@@ -170,16 +170,21 @@ def main (): | |||
170 | settings['frontends'] = values | 170 | settings['frontends'] = values |
171 | 171 | ||
172 | parameters = deque(itertools.dropwhile(lambda x: not x.startswith('--'), parameters)) | 172 | parameters = deque(itertools.dropwhile(lambda x: not x.startswith('--'), parameters)) |
173 | if parameters: | 173 | if parameters: |
174 | parameter = parameters.popleft() | 174 | parameter = parameters.popleft() |
175 | else: | 175 | else: |
176 | parameter = None | 176 | parameter = None |
177 | 177 | ||
178 | if 'checksum' in settings['versions']: | ||
179 | if not 'backends' in settings: | ||
180 | settings['backends'] = [] | ||
181 | settings['backends'].append('checksum') | ||
182 | |||
178 | if (not settings.has_key('versions')): | 183 | if (not settings.has_key('versions')): |
179 | usage("missing 'versions'") | 184 | usage("missing 'versions'") |
180 | if (not settings.has_key('frontends')): | 185 | if (not settings.has_key('frontends')): |
181 | usage("missing 'frontends'") | 186 | usage("missing 'frontends'") |
182 | if (not settings.has_key('backends')): | 187 | if (not settings.has_key('backends')): |
183 | usage("missing 'backends'") | 188 | usage("missing 'backends'") |
184 | 189 | ||
185 | build(settings, currentRepository) | 190 | build(settings, currentRepository) |