Changeset fa4ec51 in rtems-libbsd for freebsd-to-rtems.py


Ignore:
Timestamp:
Apr 3, 2017, 1:12:18 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, 4a77611a223ea883fb548679b516d326a020d447
Children:
23d6e50
Parents:
d61f731
git-author:
Sebastian Huber <sebastian.huber@…> (04/03/17 13:12:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/20/17 12:59:55)
Message:

scripts: Generalize names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd-to-rtems.py

    rd61f731 rfa4ec51  
    6060    print("  -b|--buildscripts just generate the build scripts")
    6161    print("  -S|--stats        Print a statistics report")
    62     print("  -R|--reverse      default FreeBSD -> RTEMS, reverse that")
    63     print("  -r|--rtems        RTEMS Libbsd directory (default: '.')")
    64     print("  -f|--freebsd      FreeBSD SVN directory (default: 'freebsd-org')")
     62    print("  -R|--reverse      default origin -> LibBSD, reverse that")
     63    print("  -r|--rtems        LibBSD directory (default: '.')")
     64    print("  -f|--freebsd      FreeBSD origin directory (default: 'freebsd-org')")
    6565    print("  -v|--verbose      enable verbose output mode")
    6666
     
    108108            isForward = False
    109109        elif o in ("-r", "--rtems"):
    110             builder.RTEMS_DIR = a
     110            builder.LIBBSD_DIR = a
    111111        elif o in ("-f", "--freebsd"):
    112112            builder.FreeBSD_DIR = a
     
    121121print("Diff Mode Enabled:           %s" % (("no", "yes")[builder.isDiffMode]))
    122122print("Only Generate Build Scripts: %s" % (("no", "yes")[isOnlyBuildScripts]))
    123 print("RTEMS Libbsd Directory:      %s" % (builder.RTEMS_DIR))
    124 print("FreeBSD SVN Directory:       %s" % (builder.FreeBSD_DIR))
     123print("LibBSD Directory:            %s" % (builder.LIBBSD_DIR))
     124print("FreeBSD Directory:           %s" % (builder.FreeBSD_DIR))
    125125print("Direction:                   %s" % (("reverse", "forward")[isForward]))
    126126
     
    135135        sys.exit(2)
    136136
    137 # Were RTEMS and FreeBSD directories specified
    138 wasDirectorySet( "RTEMS", builder.RTEMS_DIR )
     137# Were directories specified?
     138wasDirectorySet( "LibBSD", builder.LIBBSD_DIR )
    139139wasDirectorySet( "FreeBSD", builder.FreeBSD_DIR )
    140140
    141141# Are we generating or reverting?
    142142if isForward == True:
    143     print("Forward from FreeBSD GIT into ", builder.RTEMS_DIR)
     143    print("Forward from", builder.FreeBSD_DIR, "into", builder.LIBBSD_DIR)
    144144else:
    145     print("Reverting from ", builder.RTEMS_DIR)
     145    print("Reverting from", builder.LIBBSD_DIR)
    146146    if isOnlyBuildScripts == True:
    147147        print("error: Build Script generation and Reverse are contradictory")
Note: See TracChangeset for help on using the changeset viewer.