IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12132


Ignore:
Timestamp:
Mar 1, 2007, 12:09:41 AM (19 years ago)
Author:
eugene
Message:

cleanup up build scripts

Location:
trunk/psconfig
Files:
5 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/mkbuild

    r11953 r12132  
    99$start = "";
    1010$stop = "";
     11$verbose = 0;
    1112
    1213@tARGV = ();
     
    1516        $version = $ARGV[1];
    1617        shift; shift; next;
     18    }
     19    if ($ARGV[0] eq "-verbose") {
     20        $verbose = 1;
     21        shift; next;
    1722    }
    1823    if ($ARGV[0] eq "-clean") {
     
    163168sub vsystem {
    164169    print STDERR "@_\n";
    165     $status = system ("@_");
    166     $status;
     170    #$status = system ("@_");
     171    #$status;
    167172}
    168173
    169174sub list_distributions {
    170     vsystem ("ls $tagsets/*.dst");
     175    @list = <$tagsets/*.dst>;
     176    foreach $line (@list) {
     177        chomp $line;
     178        ($dist) = $line =~ m|$tagsets/(\S*).dst|;
     179        print STDERR "$dist\n";
     180    }
    171181    exit 2;
    172182}
     
    200210        if (($do_update ne "Y") && ($do_update ne "N")) { die "invalid tag option $do_update\n"; }
    201211       
    202         print "tag: $do_tag, build: $do_build, package: $do_package, update: $do_update ";
    203         print "module: $cvsname, branchtag: $branchtag, branchver: $branchver \n";
     212        if ($verbose) { print "tag: $do_tag, build: $do_build, package: $do_package, update: $do_update "; }
     213        if ($verbose) { print "module: $cvsname, branchtag: $branchtag, branchver: $branchver \n"; }
    204214
    205215        push @mode, $mode;
     
    215225
    216226sub usage {
    217     print STDERR "USAGE: mkdist -list\n";
    218     print STDERR "     : list valid distributions \n\n";
    219     print STDERR "USAGE: mkdist (distribution) [-cvs]\n";
    220     print STDERR "     : make a distribution tarball\n";
    221     print STDERR "     : -cvs  : only check out the cvs tree, don't make a tarball\n\n";
    222     print STDERR "USAGE: mkdist -diff (group) (version)\n";
    223     print STDERR "     : show the difference between the distribution and current tree\n\n";
     227    print STDERR "USAGE: psbuild [options] (distribution)\n";
     228    print STDERR "     : -version (version) : specify alternate psconfig installation version\n";
     229    print STDERR "     : -clean             : clean the source directories before building\n";
     230    print STDERR "     : -rebuild           : run 'autogen' (C code)\n";
     231    print STDERR "     : -optimize          : set flags for optimized code\n";
     232    print STDERR "     : -only (module)     : only build the specified module\n";
     233    print STDERR "     : -start (module)    : begin build at specified module\n";
     234    print STDERR "     : -stop (module)     : stop build after specified module\n\n";
     235    print STDERR "     : psbuild -list      : list the available distributions\n";
     236    print STDERR "     : psbuild -h         : this help listing\n";
     237    print STDERR "     : psbuild -help      : this help listing\n";
     238    print STDERR "     : psbuild --help     : this help listing\n";
    224239    exit 2;
    225240}
  • trunk/psconfig/mkdist

    r11730 r12132  
    2626    if ($ARGV[0] eq "-devtag") {
    2727        $setdevtag = 1;
    28         shift; next;
    29     }
    30     if ($ARGV[0] eq "-deltag") {
    31         $deltag = 1;
    3228        shift; next;
    3329    }
     
    7470        print STDERR "--- $cvsname[$i] ---\n";
    7571        if ($cvsname[$i] eq "base") { next; }
    76         if ($tag[$i] eq "") {
    77             &vsystem ("cvs -q rdiff -s -r HEAD $cvsname[$i]");
    78         } else {
    79             &vsystem ("cvs -q rdiff -s -r $tag[$i] $cvsname[$i]");
    80         }       
     72        if ($tag[$i] eq "") { next; }
     73        &vsystem ("cvs -q rdiff -s -r $tag[$i] $cvsname[$i]");
    8174        print STDERR "\n\n";
    8275    }
     
    139132
    140133sub list_distributions {
    141 
    142     vsystem ("ls $tagsets/*.dst");
     134    @list = <$tagsets/*.dst>;
     135    foreach $line (@list) {
     136        chomp $line;
     137        ($dist) = $line =~ m|$tagsets/(\S*).dst|;
     138        print STDERR "$dist\n";
     139    }
    143140    exit 2;
    144141}
     
    183180
    184181sub usage {
    185     print STDERR "USAGE: mkdist -list\n";
    186     print STDERR "     : list valid distributions \n\n";
    187     print STDERR "USAGE: mkdist (distribution) [-cvs]\n";
    188     print STDERR "     : make a distribution tarball\n";
    189     print STDERR "     : -cvs  : only check out the cvs tree, don't make a tarball\n\n";
    190     print STDERR "USAGE: mkdist -diff (group) (version)\n";
    191     print STDERR "     : show the difference between the distribution and current tree\n\n";
     182    print STDERR "USAGE: mkdist [options] (distribution]\n";
     183    print STDERR "     : -tag     : set tags on branch based on distribution table\n";
     184    print STDERR "     : -branch  : set branch tags based on distribution table (requires -tag)\n";
     185    print STDERR "     : -devtag  : set tags on cvs HEAD based on distribution table (requires -tag)\n\n";
     186
     187    print STDERR "     : -tarball : make a distribution tarball\n";
     188    print STDERR "     : -cvs     : check out tree and leave CVS elements behind\n";
     189    print STDERR "     : -module  : perform action only on the specified module\n\n";
     190    print STDERR "     : -list    : list valid distributions \n\n";
     191    print STDERR "     : -diff    : show the difference between the distribution and current cvs HEAD\n";
    192192    exit 2;
    193193}
  • trunk/psconfig/notes.txt

    r11940 r12132  
     1
     22007.02.28 : cleanup configuration tools
     3
     4operations we would like to perform with these tools:
     5
     6tag CVS tree
     7build tarball from tagged tree
     8build tarball from head
     9build and install software in tree
     10check for needed external software
     11build and install external software
     12
     13
    114
    215YAML : asks for installation confirmation. 
     
    720Template : asks about XS and additional files.  we can skip both of these
    821
     22#!/bin/csh -f
     23
     24grep use `find .. -name "*.pm"` |\
     25     sed "s|::|@@|g" |\
     26     awk -F: '{print $2}' |\
     27     sed "s|@@|::|g" |\
     28     awk -F\; '{print $1}' |\
     29     grep -v "\#" |\
     30     sed "s|qw(|@|" |\
     31     awk -F@ '{print $1}' |\
     32     sort | uniq |\
     33     grep "^use" > perl.modules.list
  • trunk/psconfig/tagsets/ipp-1.0.dst

    r11730 r12132  
    88# ||||
    99  NYNY  Ohana
    10   NNYN  ohana.base     base-1-5         -0
    11   NNYN  libohana       libohana-1-9     -0
    12   NNYN  libfits        libfits-1-7      -0
    13   NNYN  libautocode    libautocode-1-6  -0
    14   NNYN  libdvo         libdvo-1-4       -0
    15   NNYN  libkapa        libkapa-1-3      -0
    16   NNYN  addstar        addstar-1-8      -0
    17   NNYN  delstar        delstar-1-7      -0
    18   NNYN  getstar        getstar-1-3      -0
    19   NNYN  kapa           kapa-1-7         -0
    20   NNYN  kii            kii-1-7          -0
    21   NNYN  relphot        relphot-1-5      -0
    22   NNYN  uniphot        uniphot-1-5      -0
    23   NNYN  opihi.base     opihi-2-9        -0
    24   NNYN  mana           mana-1-7         -0
    25   NNYN  dvo            dvo-1-0          -0
    26   NNYN  pantasks       pantasks-1-0     -0
    27   NNYN  pcontrol       pcontrol-1-0     -0
    28   NNYN  pclient        pclient-1-0      -0
    29   NYYY  psLib          rel-1-0          -0
    30   NYYY  psModules      rel-1-0          -0
    31   YYYY  psphot         rel-0-8          -0
    32   YYYY  psastro        rel-0-8          -0
    33   YYYY  ppStats        rel-1-0          -0
    34   YYYY  ppImage        rel-1-0          -0
    35   YYYY  ppNorm         rel-1-0          -0
    36   YYYY  ppMerge        rel-1-0          -0
    37   YNYY  pois           rel-0-1          -0
    38   YNYY  pswarp         rel-0-1          -0
    39   YNYY  ppStac         rel-0-1          -0
    40   YYYY  PS-IPP-Metadata-Config rel-1-0  -0
    41   YYYY  PS-IPP-Config          rel-1-0  -0
    42   YYYY  ippScripts     rel-1-0          -0
    43   YYYY  glueforge      rel-1-0          -0
    44   YYYY  dbconfig       rel-1-0          -0
    45   NYNN  ippdb.src                     
    46   YYYY  ippconfig      rel-1-0          -0
    47   YYYY  ippTools       rel-1-0          -0
    48   YYYY  ippTasks       rel-1-0          -0
    49   YYYY  simtest        rel-0-8          -0
    50   YNYY  psconfig       rel-1-0          -0
    51   YNYY  ippMonitor     rel-1-0          -0
     10  NNYN  ohana.base      base-1-5         -0
     11  NNYN  libohana        libohana-1-9     -0
     12  NNYN  libfits         libfits-1-7      -0
     13  NNYN  libautocode     libautocode-1-6  -0
     14  NNYN  libdvo          libdvo-1-4       -0
     15  NNYN  libkapa         libkapa-1-3      -0
     16  NNYN  addstar         addstar-1-8      -0
     17  NNYN  delstar         delstar-1-7      -0
     18  NNYN  getstar         getstar-1-3      -0
     19  NNYN  kapa            kapa-1-7         -0
     20  NNYN  kii             kii-1-7          -0
     21  NNYN  relphot         relphot-1-5      -0
     22  NNYN  uniphot         uniphot-1-5      -0
     23  NNYN  opihi.base      opihi-2-9        -0
     24  NNYN  mana            mana-1-7         -0
     25  NNYN  dvo             dvo-1-0          -0
     26  NNYN  pantasks        pantasks-1-0     -0
     27  NNYN  pcontrol        pcontrol-1-0     -0
     28  NNYN  pclient         pclient-1-0      -0
     29  NYYY  psLib           rel-1-0          -0
     30  NYYY  psModules       rel-1-0          -0
     31  YYYY  psphot          rel-0-8          -0
     32  YYYY  psastro         rel-0-8          -0
     33  YYYY  ppStats         rel-1-0          -0
     34  YYYY  ppImage         rel-1-0          -0
     35  YYYY  ppNorm          rel-1-0          -0
     36  YYYY  ppMerge         rel-1-0          -0
     37  YNYY  pois            rel-0-1          -0
     38  YNYY  pswarp          rel-0-1          -0
     39  YNYY  ppStac          rel-0-1          -0
     40  YYYY  PS-IPP-Metadata-Config rel-1-0   -0
     41  YYYY  PS-IPP-Config   rel-1-0          -0
     42  YYYY  ippScripts      rel-1-0          -0
     43  YYYY  glueforge       rel-1-0          -0
     44  YYYY  dbconfig        rel-1-0          -0
     45  NYNN  ippdb.src                            
     46  YYYY  ippconfig       rel-1-0          -0
     47  YYYY  ippTools        rel-1-0          -0
     48  YYYY  ippTasks        rel-1-0          -0
     49  YYYY  simtest         rel-0-8          -0
     50  YNYY  psconfig        rel-1-0          -0
     51  YNYY  ippMonitor      rel-1-0          -0
    5252
    5353# there are externally required perl modules (see README?)
Note: See TracChangeset for help on using the changeset viewer.