Changeset 660 for trunk


Ignore:
Timestamp:
Aug 18, 2003, 3:34:39 PM (21 years ago)
Author:
joergs
Message:

specifying DEST_DIR here instead of build.sh
bugfix with log files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/technical/common/build/buildall.pl

    r628 r660  
    22# automatisches buildskript fuer smartclient
    33# liest die konfiguration aus der mit -b übergebenen Datei
    4 # $Id: buildall.pl,v 1.17 2002/10/18 08:37:46 joergs Exp $
     4# $Id: buildall.pl,v 1.18 2003/08/18 13:34:39 joergs Exp $
    55# Philipp Storz, SuSE Linux AG
    66# pstorz@suse.de
     
    3333#my $smartclient_root="/home/joergs/projects/smartclient/stuttgarter-versicherung/technical/";
    3434#$workdir="";
     35
     36my $DEST_DIR="/tmp/smartclient_build/";
     37
    3538
    3639my $build = "build.sh";
     
    8588if ($answer ne "y") {die("canceled")};
    8689
     90$ENV{'DEST_DIR'}=$DEST_DIR;
     91
    8792my $mypath;
    8893for my $i (0 .. $#ArrayofBuilds)
     
    105110  print "$_ \n";
    106111  tr/\//\_/;
    107   my $logfilename = "/tmp/smartclient_build/$_.$ArrayofBuilds[$i][1].log";
     112  `mkdir -p $DEST_DIR`;
     113  my $logfilename = "$DEST_DIR/$_$ArrayofBuilds[$i][1].log";
    108114
    109115  my $build_cmd="cd $mypath && $build";
     
    128134  print "executing build command:\n";
    129135  print "$build_cmd\n";
    130   print "you can watch building with following command: \n";
    131   print "less +F $logfilename\n\n";
    132136
    133   my $do_log = open( LOG_FD, ">$logfilename" ) || print "could not open logfile $logfilename";
     137  my $do_log = open( LOG_FD, ">$logfilename" );
     138  if( $do_log ) {
     139    print "you can watch building with following command: \n";
     140    print "less +F $logfilename\n\n";
     141  } else {
     142        print "could not open logfile $logfilename\n";
     143  }
    134144  open( PIPE, "$build_cmd 2>&1 |" );
    135145  while( <PIPE> ) {
Note: See TracChangeset for help on using the changeset viewer.