Changeset 2261 in /cluster/svnroot


Ignore:
Timestamp:
Mar 18, 2010 3:37:39 PM (11 years ago)
Author:
fitz
Message:

Adding builddir option (#474)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/fitz-devel/bin/build_livecd.pl

    r2213 r2261  
    1919my($debmirror,$websvn,$rc,$out,$ft,$tmpdir,$cwd,$svnrev,
    2020   $Bccd,$allout,$rpkgs,$nouid,$nogid,$debmirror_host,
    21    $debmirror_name,$debsecmirror);
     21   $debmirror_name,$debsecmirror,$dir);
    2222my(@lsof,@pids,@rd);
    2323
     
    3333    "debmirror=s" => \$opts{'debmirror'},
    3434    "websvn=s" => \$opts{'websvn'},
     35    "builddir=s" => \$opts{'dir'},
    3536    'help' => \$opts{'help'}
    3637    );
     
    4950Readonly my $PROJECT => 'bccd';
    5051$ft = new File::Temp();
     52if(defined($opts{'dir'})) {
     53        $dir = $opts{'dir'};
     54} else {
     55        $dir = File::Spec->tmpdir;
     56}
     57
    5158if( $opts{'nocleanup'} ) {
    52     $tmpdir = $ft->tempdir('$PROJECT',CLEANUP => 0);
     59    $tmpdir = $ft->tempdir('$PROJECT',DIR => $dir,CLEANUP => 0);
    5360} else {
    54     $tmpdir = $ft->tempdir('$PROJECT',CLEANUP => 1);
     61    $tmpdir = $ft->tempdir('$PROJECT',DIR => $dir,CLEANUP => 1);
    5562}
    5663$Bccd = new Bccd();
Note: See TracChangeset for help on using the changeset viewer.