Changeset 596 for trunk


Ignore:
Timestamp:
Sep 4, 2002, 4:43:59 PM (22 years ago)
Author:
pstorz
Message:

automatisches xterm aufpoppen

File:
1 edited

Legend:

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

    r594 r596  
    22# automatisches buildskript fuer smartclient
    33# liest die konfiguration aus der mit -b übergebenen Datei
    4 # $Id: buildall.pl,v 1.3 2002/09/04 12:44:47 pstorz Exp $
     4# $Id: buildall.pl,v 1.4 2002/09/04 14:43:59 pstorz Exp $
    55use Getopt::Std;
    66
     
    6363    }
    6464  $ENV{'BUILD_DIST'}=$ArrayofBuilds[$i][1];
    65   $ENV{'BUILD_DIST'}=$ArrayofBuilds[$i][1];
     65
    6666 
    6767#  system "./test.sh";
     
    7171  $logfilename = $_.".$ArrayofBuilds[$i][1].log";
    7272  print "++++++++++++++++++++++++++++++++++++++++++\n";
    73   print "executing command: cd $mypath; $build 2>&1 |tee $logfilename\n";
     73  print "executing command: cd $mypath; $build 2>&1 > $logfilename\n";
    7474  print "BUILD_DIST ist $ENV{'BUILD_DIST'}\n";
    7575  print "BUILD_MODE ist $ENV{'BUILD_MODE'}\n";
    7676 
    77   print "writing logfile to $logfilename \n";
     77  print "writing logfile to $logfilename \n\n\n";
     78  print "you can watch building with following command: \n";
     79  $workdir=`pwd`;
     80  chomp $workdir;
     81  print "less +F $workdir/$mypath/$logfilename\n";
     82  system "xterm -T \"build log for PACKET: $mypath    ARCH:$ArrayofBuilds[$i][1] \" -e less +F $workdir/$mypath/$logfilename &";
    7883  print "++++++++++++++++++++++++++++++++++++++++++\n";
    79 # system "cd $mypath; $build 2>&1 > $logfilename;"
    80  system "cd $mypath; $build 2>&1 |tee $logfilename;"
     84  $retval = system "cd $mypath; $build >$logfilename 2>&1;";
     85# $retval = system "./exit.sh 2>&1 > $logfilename;";
     86
     87
     88 if ($retval == 0)
     89   {
     90     $ArrayofBuilds[$i][3]= "building of $ArrayofBuilds[$i][0] SUCCESSFULL:";
     91     print"******                                                      ******\n";
     92     print"******   building of $ArrayofBuilds[$i][0] SUCCESSFULL:     \n" ;
     93     print"******                                                      ******\n";
     94   }
     95 else
     96   {
     97     $ArrayofBuilds[$i][3]="ERROR: building of $ArrayofBuilds[$i][0] UNSUCCESSDULL:\n";
     98     print"******                                                      ******\n";
     99     print"\n\n\nERROR: building of $ArrayofBuilds[$i][0] UNSUCCESSFULL \n";
     100     print"******                                                      ******\n";
     101   }
     102
    81103}
     104
     105print "Building results:\n";
     106
     107for $i (0 .. $#ArrayofBuilds)
     108  {
     109    print("$ArrayofBuilds[$i][0]:Result: $ArrayofBuilds[$i][3]");
     110  }
     111
     112
     113
    82114
    83115print "buildall.pl terminated\n";
Note: See TracChangeset for help on using the changeset viewer.