Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/scripts/tardis-scratch-checkout.pl @ 7895

Last change on this file since 7895 was 7279, checked in by bensch, 19 years ago

new much improoved checkout scriptt

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/usr/bin/perl
2
3
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
14$username = `whoami`;
15chomp $username;
16
17
18$URL = "https://svn.orxonox.net/orxonox/$source";
19$destination = "/scratch/$username\/orxonox/$source";
20
21  mkdir ("/scratch/$username");
22  mkdir ("/scratch/$username\/orxonox");
23
24  print("Checking out ORXONOX from '$URL' to '$destination'\n");
25
26
27  open(SVN_CO, "svn co $URL $destination |");
28  while(<SVN_CO>){
29   print $_;
30  }
31 
32  chdir("$destination");
33
34
35  print "executing autogen.sh\n";
36  open( AUTOGEN , "./autogen.sh |");
37  while(<AUTOGEN>){
38   print $_;
39  }
40
41  print "executing configure for tardis\n";
42  open(CONFIGURE, "./configure --with-tardis |");
43  while(<CONFIGURE>){
44    printf $_;
45  }
46 
47  print ("Executing make with opts -j3\n");
48  open(MAKE, "make -j3|");
49  while(<MAKE>) {
50    print $_;
51  }
52  printf("Finished checking out '$URL' to '$destination'\n");
53
Note: See TracBrowser for help on using the repository browser.