Changeset 593
- Timestamp:
- Sep 4, 2002, 1:36:19 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/technical/common/build/buildall.pl
r589 r593 2 2 # automatisches buildskript fuer smartclient 3 3 # liest die konfiguration aus der mit -b übergebenen Datei 4 # $Id: buildall.pl,v 1. 1 2002/09/03 14:13:10pstorz Exp $4 # $Id: buildall.pl,v 1.2 2002/09/04 11:36:19 pstorz Exp $ 5 5 use Getopt::Std; 6 6 … … 13 13 getopts('b:'); 14 14 15 if (!$opt_b) 16 {die "usage: buildall.pl -b buildlist\n"; 17 }; 18 15 19 (open(BUILDLIST,$opt_b)) || die "Die Buildlist $opt_b konnte nicht gefunden werden"; 16 20 … … 19 23 { 20 24 next if (/^\#.*$/); 21 if (/([\w\/]+)\s*:([\/\w\-\+\.]+)\s+:?((\s*\-\-\w*)*)$/) 25 # if (/([\w\/]+)\s*:([\/\w\-\+\.]+)\s+:((\s*\-\-\w*)*)$/) 26 if (/(\S+)\s*:(\S+)\s*:(\S+)\s*$/) 22 27 { 23 28 ($dir, $arch, $opt) = ($1, $2, $3); … … 28 33 } 29 34 35 36 37 print "What will be done:\n"; 38 print "Path\tDistribution\tBuildoptions\n"; 30 39 for $i (0 .. $#ArrayofBuilds) 31 40 { 32 print("$ArrayofBuilds[$i][0]\t$ArrayofBuilds[$i][1]\t$ArrayofBuilds[$i][2]\n"); 41 print("$ArrayofBuilds[$i][0]\t\t$ArrayofBuilds[$i][1]\t\t$ArrayofBuilds[$i][2]\n"); 42 } 43 print "\n\n\n ATTENTION: the srpms from the directory external/SuSE must be built before!\n"; 44 print "to build srpms, goto dir external/SuSE, execute build_srpms.sh script!\n\n\n"; 45 print 'Are the srpms built and all options OK? (y/n)'; 46 47 $answer =<STDIN>; 48 chomp ($answer); 49 if ($answer ne "y") {die("canceled")}; 50 51 for $i (0 .. $#ArrayofBuilds) 52 { 53 print("$ArrayofBuilds[$i][0]\t\t$ArrayofBuilds[$i][1]\t\t$ArrayofBuilds[$i][2]\n"); 33 54 $mypath = $smartclient_root.$ArrayofBuilds[$i][0]; 34 55 … … 42 63 } 43 64 $ENV{'BUILD_DIST'}=$ArrayofBuilds[$i][1]; 65 $ENV{'BUILD_DIST'}=$ArrayofBuilds[$i][1]; 66 44 67 # system "./test.sh"; 45 68 $_=$ArrayofBuilds[$i][0]; 46 69 print "$_ \n"; 47 70 tr/\//\_/; 48 $logfilename = $_.". log";71 $logfilename = $_.".$ArrayofBuilds[$i][1].log"; 49 72 print "++++++++++++++++++++++++++++++++++++++++++\n"; 50 73 print "executing command: cd $mypath; $build 2>&1 |tee $logfilename\n"; 51 74 print "BUILD_DIST ist $ENV{'BUILD_DIST'}\n"; 52 75 print "BUILD_MODE ist $ENV{'BUILD_MODE'}\n"; 53 76 54 77 print "writing logfile to $logfilename \n"; 55 78 print "++++++++++++++++++++++++++++++++++++++++++\n";
Note:
See TracChangeset
for help on using the changeset viewer.