Changeset f68f0d9 in rtems-source-builder
- Timestamp:
- 07/14/19 04:01:44 (4 years ago)
- Branches:
- 5, master
- Children:
- b1c2cb4
- Parents:
- b90b749
- git-author:
- Chris Johns <chrisj@…> (07/14/19 04:01:44)
- git-committer:
- Chris Johns <chrisj@…> (07/21/19 11:09:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source-builder/sb/options.py
rb90b749 rf68f0d9 100 100 self.opts[lo[2:]] = self._long_opts[lo][3] 101 101 if self._long_opts[lo][4]: 102 self.defaults[self._long_opts[lo][0]] = ('none', 'none', self._long_opts[lo][3]) 102 self.defaults[self._long_opts[lo][0]] = ('none', 103 'none', 104 self._long_opts[lo][3]) 103 105 104 106 def __str__(self): … … 199 201 def help(self): 200 202 print('%s: [options] [args]' % (self.command_name)) 201 print('RTEMS Source Builder, an RTEMS Tools Project (c) 2012-201 5Chris Johns')203 print('RTEMS Source Builder, an RTEMS Tools Project (c) 2012-2019 Chris Johns') 202 204 print('Options and arguments:') 203 205 print('--force : Force the build to proceed') … … 255 257 if long_opt[2]: 256 258 if arg == len(self.args) - 1: 257 raise error.general('option requires a parameter: %s' % (lo)) 259 raise error.general('option requires a parameter: %s' % \ 260 (lo)) 258 261 arg += 1 259 262 value = self.args[arg] … … 269 272 else: 270 273 value = '1' 271 self.defaults[los[0][2:].replace('-', '_').lower()] = ('none', 'none', value) 274 self.defaults[los[0][2:].replace('-', '_').lower()] = \ 275 ('none', 'none', value) 272 276 else: 273 277 if lo not in self.optargs: … … 314 318 prefix = self.parse_args('--prefix') 315 319 if prefix is None: 316 value = path.join(self.defaults['_prefix'], 'rtems', str(self.defaults['rtems_version'])) 320 value = path.join(self.defaults['_prefix'], 321 'rtems', 322 str(self.defaults['rtems_version'])) 317 323 self.opts['prefix'] = value 318 324 self.defaults['_prefix'] = value … … 338 344 checked = path.exists(um) 339 345 if False in checked: 340 raise error.general('macro file not found: %s' % (um[checked.index(False)])) 346 raise error.general('macro file not found: %s' % \ 347 (um[checked.index(False)])) 341 348 for m in um: 342 349 self.defaults.load(m)
Note: See TracChangeset
for help on using the changeset viewer.