Changeset 68c9b8a in rtems-tools


Ignore:
Timestamp:
Aug 4, 2012, 12:29:24 PM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
7234c70
Parents:
5a44122
Message:

Remove CVS Id and update the copyright year.

Location:
specbuilder
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • specbuilder/sb-build

    r5a44122 r68c9b8a  
    11#! /usr/bin/env python
    22#
    3 # $Id$
    4 #
    53# RTEMS Tools Project (http://www.rtems.org/)
    6 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     4# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    75# All rights reserved.
    86#
  • specbuilder/sb-crossgcc

    r5a44122 r68c9b8a  
    11#! /usr/bin/env python
    22#
    3 # $Id$
    4 #
    53# RTEMS Tools Project (http://www.rtems.org/)
    6 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     4# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    75# All rights reserved.
    86#
  • specbuilder/sb-setup

    r5a44122 r68c9b8a  
    11#! /usr/bin/env python
    22#
    3 # $Id$
    4 #
    53# RTEMS Tools Project (http://www.rtems.org/)
    6 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     4# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    75# All rights reserved.
    86#
  • specbuilder/sb-specdump

    r5a44122 r68c9b8a  
    11#! /usr/bin/env python
    22#
    3 # $Id$
    4 #
    53# RTEMS Tools Project (http://www.rtems.org/)
    6 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     4# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    75# All rights reserved.
    86#
  • specbuilder/sb-status

    r5a44122 r68c9b8a  
    11#! /usr/bin/env python
    22#
    3 # $Id$
    4 #
    53# RTEMS Tools Project (http://www.rtems.org/)
    6 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     4# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    75# All rights reserved.
    86#
  • specbuilder/sb-versions

    r5a44122 r68c9b8a  
    11#! /usr/bin/env python
    22#
    3 # $Id$
    4 #
    53# RTEMS Tools Project (http://www.rtems.org/)
    6 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     4# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    75# All rights reserved.
    86#
  • specbuilder/specbuilder/build.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
     
    185183        # Get the file. Checks the local source directory first.
    186184        #
    187         source['local'] = os.path.join(self.spec.abspath('_sourcedir'), 
     185        source['local'] = os.path.join(self.spec.abspath('_sourcedir'),
    188186                                       source['file'])
    189187        #
     
    367365            args = l.split()
    368366            self.script.append(' '.join(args))
    369        
     367
    370368    def cleanup(self):
    371369        buildroot = self.spec.abspath('buildroot')
  • specbuilder/specbuilder/crossgcc.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
  • specbuilder/specbuilder/darwin.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
  • specbuilder/specbuilder/defaults.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
     
    4442'_topdir':        os.getcwd(),
    4543'_srcrpmdir':     '%{_topdir}/SRPMS',
    46 '_sourcedir':     '%{_topdir}/SOURCES', 
     44'_sourcedir':     '%{_topdir}/SOURCES',
    4745'_specdir':       '%{_topdir}/SPECS',
    4846'_rpmdir':        '%{_topdir}/TARS',
     
    156154'_varrun':             '%{_var}/run',
    157155'configure': '''
    158 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; 
    159 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; 
    160 FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; 
     156CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
     157CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
     158FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ;
    161159./configure --build=%{_build} --host=%{_host} \
    162160      --target=%{_target_platform} \
     
    295293                                    #
    296294                                    e = execute.capture_execution()
    297                                     config_sub = os.path.join(self.command_path, 
     295                                    config_sub = os.path.join(self.command_path,
    298296                                                              'specbuilder', 'config.sub')
    299297                                    exit_code, proc, output = e.shell(config_sub + ' ' + value)
     
    354352    def command(self):
    355353        return os.path.join(self.command_path, self.command_name)
    356        
     354
    357355    def dry_run(self):
    358356        return self.opts['dry-run'] != '0'
     
    362360
    363361    def trace(self):
    364         return self.opts['trace'] != '0' 
     362        return self.opts['trace'] != '0'
    365363
    366364    def warn_all(self):
     
    437435            overrides = freebsd.load()
    438436        elif uname[0] == 'Linux':
    439             import linux 
     437            import linux
    440438            overrides = linux.load()
    441439    if overrides is None:
  • specbuilder/specbuilder/error.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
     
    3735    def __init__(self, what):
    3836        self.set_output('error: ' + what)
    39    
     37
    4038class internal(error):
    4139    """Raise for an internal error."""
    4240    def __init__(self, what):
    4341        self.set_output('internal error: ' + what)
    44    
     42
    4543if __name__ == '__main__':
    4644    try:
  • specbuilder/specbuilder/execute.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
     
    6563        else:
    6664            # We have a quoted string. Get the string before
    67             # the quoted string and spltt on white space then
     65            # the quoted string and splt on white space then
    6866            # add the quoted string as an option then remove
    6967            # the first + quoted string and try again
     
    300298        #self.snapper.get_and_clear()
    301299        exit_code, proc = execute.open(self, command, capture = True, shell = shell,
    302                                        cwd = cwd, env = env, 
     300                                       cwd = cwd, env = env,
    303301                                       stdin = stdin, stdout = stdout, stderr = stderr)
    304302        return (exit_code, proc, self.snapper.get_and_clear())
     
    329327            e.capture(proc)
    330328            del proc
    331        
     329
    332330    cmd_shell_test = 'if "%OS%" == "Windows_NT" (echo It is WinNT) else echo Is is not WinNT'
    333331    sh_shell_test = 'x="me"; if [ $x = "me" ]; then echo "It was me"; else "It was him"; fi'
    334    
     332
    335333    commands = {}
    336334    commands['windows'] = {}
     
    349347                                   ('date %0 %1', ['-u', '+%d %D %S'])]
    350348    commands['unix']['pipe'] = ('grep', 'hello', 'hello world')
    351    
     349
    352350    print arg_list('cmd a1 a2 "a3 is a string" a4')
    353351    print arg_list('cmd b1 b2 "b3 is a string a4')
    354352    print arg_subst(['nothing', 'xx-%0-yyy', '%1', '%2-something'],
    355353                    ['subst0', 'subst1', 'subst2'])
    356    
     354
    357355    e = execute(error_prefix = 'ERR: ', verbose = True)
    358356    if sys.platform == "win32":
  • specbuilder/specbuilder/freebsd.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
     
    2321
    2422#
    25 # This code is based on what ever doco about spec files I could find and 
     23# This code is based on what ever doco about spec files I could find and
    2624# RTEMS project's spec files.
    2725#
     
    4846    if version.find('-') > 0:
    4947        version = version.split('-')[0]
    50     defines = { 
     48    defines = {
    5149        '_os':                     'freebsd',
    5250        '_host':                   cpu + '-freebsd' + version,
  • specbuilder/specbuilder/linux.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
     
    2321
    2422#
    25 # This code is based on what ever doco about spec files I could find and 
     23# This code is based on what ever doco about spec files I could find and
    2624# RTEMS project's spec files.
    2725#
     
    4543                cpus = int(count)
    4644        if cpus > 0:
    47             smp_mflags = '-j%d' % (cpus) 
    48     defines = { 
     45            smp_mflags = '-j%d' % (cpus)
     46    defines = {
    4947        '_os':                     'linux',
    5048        '_host':                   uname[4] + '-linux-gnu',
  • specbuilder/specbuilder/log.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
     
    9593        out = ''
    9694        for l in text.replace(chr(13), '').splitlines():
    97             out += l + os.linesep 
     95            out += l + os.linesep
    9896        for f in range(0, len(self.fhs)):
    9997            if self.fhs[f] is not None:
     
    105103            if self.fhs[f] is not None:
    106104                self.fhs[f].flush()
    107        
     105
    108106if __name__ == "__main__":
    109107    l = log(['stdout', 'log.txt'])
  • specbuilder/specbuilder/rtems.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
     
    2927
    3028def load():
    31     defines = { 
     29    defines = {
    3230        # Build readline with gdb.
    3331        'without_system_readline': 'without_system_readline',
  • specbuilder/specbuilder/setup.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
  • specbuilder/specbuilder/spec.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
  • specbuilder/specbuilder/status.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
  • specbuilder/specbuilder/version.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
  • specbuilder/specbuilder/windows.py

    r5a44122 r68c9b8a  
    1 #
    2 # $Id$
    31#
    42# RTEMS Tools Project (http://www.rtems.org/)
    5 # Copyright 2010 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
    64# All rights reserved.
    75#
     
    4644        hosttype = 'i686'
    4745    system = 'mingw32'
    48     defines = { 
     46    defines = {
    4947        '_os':                     'win32',
    5048        '_host':                   hosttype + '-pc-' + system,
Note: See TracChangeset for help on using the changeset viewer.