Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7279 in orxonox.OLD


Ignore:
Timestamp:
Apr 4, 2006, 3:22:01 PM (18 years ago)
Author:
bensch
Message:

new much improoved checkout scriptt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/tardis-scratch-checkout.pl

    r7278 r7279  
    22
    33
    4 print $_[1];
     4
     5$source = @ARGV[0];
     6if ($source eq "help" || $source eq "h"){
     7    print "ORXONOX checkout script for Tardis:\n usage:\n tardis-scratch-checkout.pl [branche]\n";
     8    exit;
     9  }
     10if ($source eq "") {
     11    $source = "trunk";
     12  }
     13
    514$username = `whoami`;
    615chomp $username;
    716
    817
     18$URL = "https://svn.orxonox.net/orxonox/$source";
     19$destination = "/scratch/$username\/orxonox/$source";
     20
    921  mkdir ("/scratch/$username");
    1022  mkdir ("/scratch/$username\/orxonox");
    1123
     24  print("Checking out ORXONOX from '$URL' to '$destination'\n");
    1225
    13   open(SVN_CO, "svn co https://svn.orxonox.net/orxonox/trunk /scratch/$username\/orxonox/trunk |");
     26
     27  open(SVN_CO, "svn co $URL $destination |");
    1428  while(<SVN_CO>){
    15   print $_;
     29   print $_;
    1630  }
    1731 
    18   chdir("/scratch/$username\/orxonox/trunk");
     32  chdir("$destination");
    1933
    2034
    21   print "executing autogen.sh";
     35  print "executing autogen.sh\n";
    2236  open( AUTOGEN , "./autogen.sh |");
    2337  while(<AUTOGEN>){
     
    2539  }
    2640
    27   print "executing configure for tardis";
     41  print "executing configure for tardis\n";
    2842  open(CONFIGURE, "./configure --with-tardis |");
    2943  while(<CONFIGURE>){
    3044    printf $_;
    3145  }
     46 
     47  print ("Executing make with opts -j3\n");
    3248  open(MAKE, "make -j3|");
    3349  while(<MAKE>) {
    3450    print $_;
    3551  }
     52  printf("Finished checking out '$URL' to '$destination'\n");
    3653
Note: See TracChangeset for help on using the changeset viewer.