IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34028


Ignore:
Timestamp:
Jun 18, 2012, 8:57:39 AM (14 years ago)
Author:
eugene
Message:

add -clean option for perl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psconfig/pscheckperl

    r34026 r34028  
    55$version = "";
    66$build = 0;
     7$clean = 0;
    78my %force;   # Names of module to force build
    89@tARGV = ();
     
    1415    if ($ARGV[0] eq "-build") {
    1516        $build = 1;
     17        shift; next;
     18    }
     19    if ($ARGV[0] eq "-clean") {
     20        $clean = 1;
    1621        shift; next;
    1722    }
     
    3237if ( @ARGV > 1) { &usage(); }
    3338
     39if ($build && $clean) {die "-build and -clean are incompatible\n";}
     40
    3441if ( @ARGV == 0) {
    3542    @list = <$tagsets/*.perl>;
     
    95102    # if ($modver eq "") { $modver = 0; }
    96103
     104    if ($clean) {
     105        ($tardir) = $tarball =~ m|(\S*).tar.gz|;
     106        $tardir = "../extperl/$tardir";
     107        if (-d $tardir) {
     108            print "remove tardir: $tardir\n";
     109            vsystem ("rm -rf $tardir");
     110        }
     111        next;
     112    }
     113   
    97114    system ("pscheckmods $module $modver");
    98115    if (($? == 0) and not defined $force{$module} and not defined $force{'all'}) {
Note: See TracChangeset for help on using the changeset viewer.