source:
orxonox.OLD/trunk/scripts/tardis-scratch-checkout.pl
@
7654
| Last change on this file since 7654 was 7279, checked in by bensch, 20 years ago | |
|---|---|
|
|
| File size: 1.0 KB | |
| Rev | Line | |
|---|---|---|
| [7277] | 1 | #!/usr/bin/perl |
| [7192] | 2 | |
| [7277] | 3 | |
| [7279] | 4 | |
| 5 | $source = @ARGV[0]; | |
| 6 | if ($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 | } | |
| 10 | if ($source eq "") { | |
| 11 | $source = "trunk"; | |
| 12 | } | |
| 13 | ||
| [7277] | 14 | $username = `whoami`; |
| [7278] | 15 | chomp $username; |
| [7277] | 16 | |
| 17 | ||
| [7279] | 18 | $URL = "https://svn.orxonox.net/orxonox/$source"; |
| 19 | $destination = "/scratch/$username\/orxonox/$source"; | |
| 20 | ||
| [7278] | 21 | mkdir ("/scratch/$username"); |
| 22 | mkdir ("/scratch/$username\/orxonox"); | |
| [7277] | 23 | |
| [7279] | 24 | print("Checking out ORXONOX from '$URL' to '$destination'\n"); |
| [7277] | 25 | |
| [7279] | 26 | |
| 27 | open(SVN_CO, "svn co $URL $destination |"); | |
| [7278] | 28 | while(<SVN_CO>){ |
| [7279] | 29 | print $_; |
| [7278] | 30 | } |
| 31 | ||
| [7279] | 32 | chdir("$destination"); |
| [7278] | 33 | |
| 34 | ||
| [7279] | 35 | print "executing autogen.sh\n"; |
| [7277] | 36 | open( AUTOGEN , "./autogen.sh |"); |
| [7278] | 37 | while(<AUTOGEN>){ |
| 38 | print $_; | |
| 39 | } | |
| [7277] | 40 | |
| [7279] | 41 | print "executing configure for tardis\n"; |
| [7278] | 42 | open(CONFIGURE, "./configure --with-tardis |"); |
| 43 | while(<CONFIGURE>){ | |
| 44 | printf $_; | |
| 45 | } | |
| [7279] | 46 | |
| 47 | print ("Executing make with opts -j3\n"); | |
| [7278] | 48 | open(MAKE, "make -j3|"); |
| 49 | while(<MAKE>) { | |
| 50 | print $_; | |
| 51 | } | |
| [7279] | 52 | printf("Finished checking out '$URL' to '$destination'\n"); |
| [7277] | 53 |
Note: See TracBrowser
for help on using the repository browser.










