Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/scripts/tardis-scratch-checkout.pl @ 10250

Last change on this file since 10250 was 8518, checked in by bensch, 18 years ago

merged the gui back to the trunk

  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[7277]1#!/usr/bin/perl
[7192]2
[7277]3
[7279]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
[7277]14$username = `whoami`;
[7278]15chomp $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
[8518]26  if (-e $destination)
27  {
28   open(SVN_UP, "svn up $destination |");
29   while(<SVN_UP>) {
[7279]30   print $_;
[8518]31   }
[7278]32  }
[8518]33  else
34  {
35   open(SVN_CO, "svn co $URL $destination |");
36   while(<SVN_CO>){
37    print $_;
38   }
39  }
[7279]40  chdir("$destination");
[7278]41
42
[7279]43  print "executing autogen.sh\n";
[7277]44  open( AUTOGEN , "./autogen.sh |");
[7278]45  while(<AUTOGEN>){
46   print $_;
47  }
[7277]48
[7279]49  print "executing configure for tardis\n";
[7278]50  open(CONFIGURE, "./configure --with-tardis |");
51  while(<CONFIGURE>){
52    printf $_;
53  }
[8518]54
[7279]55  print ("Executing make with opts -j3\n");
[7278]56  open(MAKE, "make -j3|");
57  while(<MAKE>) {
58    print $_;
59  }
[7279]60  printf("Finished checking out '$URL' to '$destination'\n");
[7277]61
Note: See TracBrowser for help on using the repository browser.