IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12867


Ignore:
Timestamp:
Apr 17, 2007, 1:59:50 PM (19 years ago)
Author:
eugene
Message:

run autogen.sh and make distclean in autoconf directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psdist

    r12151 r12867  
    5757            shift; next
    5858        }
     59        if ($ARGV[0] eq "autogen") {
     60            $mkdist_mode = "autogen";
     61            shift; next
     62        }
    5963        if ($ARGV[0] eq "tarball") {
    6064            $mkdist_mode = "tarball";
     
    177181# XXX probably need to force CVSROOT here
    178182sub make_distribution {
    179     # package distribution into a tarball
     183    # extract source tree and optionally package the distribution into a tarball
    180184    print STDERR "making distribution\n";
    181185    if ($mkdist_mode eq "") { die "-dist mode is not set\n"; }
     
    202206    if ($mkdist_mode eq "cvs") { exit 0; }
    203207
     208    # remove the CVS directories
    204209    &vsystem ("rm -r `find $distribution -name CVS`");
    205210    if ($mkdist_mode eq "tree") { exit 0; }
    206211
     212    # run autogen.sh, if present, to build a configure script
     213    chdir $distribution;
     214    for ($i = 0; $i < @cvsname; $i++) {
     215        if (($module ne "") && ($module ne $cvsname[$i])) { next; }
     216        ($do_tag, $do_build, $do_dist, $do_update) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)|;
     217        if ($do_dist eq "N") { next; }
     218
     219        if (! -e "$cvsname[$i]/autogen.sh") { next; }
     220        chdir $cvsname[$i];
     221
     222        vsystem ("./autogen.sh");
     223        if ($status) { die "error running autogen.sh"; }
     224
     225        vsystem ("make distclean");
     226        if ($status) { die "error running make distclean"; }
     227        chdir "..";
     228    }
     229    chdir "..";
     230    if ($mkdist_mode eq "autogen") { exit 0; }
     231
     232    # build a tarball from the full tree
    207233    if (! -e tarballs) { mkdir "tarballs"; }
    208234    &vsystem ("tar cvzf tarballs/$distribution.tgz  $distribution");
Note: See TracChangeset for help on using the changeset viewer.