- Timestamp:
- Oct 18, 2002, 10:37:46 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/technical/common/build/buildall.pl
r626 r628 2 2 # automatisches buildskript fuer smartclient 3 3 # liest die konfiguration aus der mit -b übergebenen Datei 4 # $Id: buildall.pl,v 1.1 6 2002/10/17 13:12:57joergs Exp $4 # $Id: buildall.pl,v 1.17 2002/10/18 08:37:46 joergs Exp $ 5 5 # Philipp Storz, SuSE Linux AG 6 6 # pstorz@suse.de … … 28 28 chomp $workdir; 29 29 30 my $smartclient_root="../../"; # Pfad, zu dem die Pfade in buildlist stehen 30 # Pfad, zu dem die Pfade in buildlist stehen 31 my $smartclient_root="../../"; 32 33 #my $smartclient_root="/home/joergs/projects/smartclient/stuttgarter-versicherung/technical/"; 34 #$workdir=""; 35 31 36 my $build = "build.sh"; 32 37 our ($opt_b, $opt_x); … … 35 40 36 41 37 if (!$opt_b) 38 { 39 $opt_b = "buildlist"; 40 print "using default buildlist: buildlist\n\n"; 41 print "other buildlist can be specified with -b buildlist\n\n"; 42 if (!$opt_b) { 43 $opt_b = "buildlist"; 44 print "using default buildlist: buildlist\n\n"; 45 print "other buildlist can be specified with -b buildlist\n\n"; 42 46 }; 43 47 … … 101 105 print "$_ \n"; 102 106 tr/\//\_/; 103 my $logfilename = " $workdir/$mypath/$_.$ArrayofBuilds[$i][1].log";107 my $logfilename = "/tmp/smartclient_build/$_.$ArrayofBuilds[$i][1].log"; 104 108 105 109 my $build_cmd="cd $mypath && $build"; … … 127 131 print "less +F $logfilename\n\n"; 128 132 129 open( LOG_FD, ">$logfilename" );133 my $do_log = open( LOG_FD, ">$logfilename" ) || print "could not open logfile $logfilename"; 130 134 open( PIPE, "$build_cmd 2>&1 |" ); 131 135 while( <PIPE> ) { … … 133 137 print; 134 138 } 135 print LOG_FD ;139 print LOG_FD if $do_log; 136 140 } 137 141 close PIPE; my $retval=$?; 138 close LOG_FD ;142 close LOG_FD if $do_log; 139 143 140 144 if ( $retval == 0 )
Note:
See TracChangeset
for help on using the changeset viewer.