Changeset f68f0d9 in rtems-source-builder


Ignore:
Timestamp:
07/14/19 04:01:44 (4 years ago)
Author:
Chris Johns <chrisj@…>
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)
Message:

sb/options: Update copyright year to 2019.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/options.py

    rb90b749 rf68f0d9  
    100100            self.opts[lo[2:]] = self._long_opts[lo][3]
    101101            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])
    103105
    104106    def __str__(self):
     
    199201    def help(self):
    200202        print('%s: [options] [args]' % (self.command_name))
    201         print('RTEMS Source Builder, an RTEMS Tools Project (c) 2012-2015 Chris Johns')
     203        print('RTEMS Source Builder, an RTEMS Tools Project (c) 2012-2019 Chris Johns')
    202204        print('Options and arguments:')
    203205        print('--force                : Force the build to proceed')
     
    255257                        if long_opt[2]:
    256258                            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))
    258261                            arg += 1
    259262                            value = self.args[arg]
     
    269272                        else:
    270273                            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)
    272276                    else:
    273277                        if lo not in self.optargs:
     
    314318        prefix = self.parse_args('--prefix')
    315319        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']))
    317323            self.opts['prefix'] = value
    318324            self.defaults['_prefix'] = value
     
    338344            checked = path.exists(um)
    339345            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)]))
    341348            for m in um:
    342349                self.defaults.load(m)
Note: See TracChangeset for help on using the changeset viewer.