Ignore:
Timestamp:
Sep 17, 2002, 12:03:24 PM (22 years ago)
Author:
pstorz
Message:

* empty log message *

File:
1 edited

Legend:

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

    r610 r611  
    22# automatisches buildskript fuer smartclient-sourcerpms
    33# liest die konfiguration aus der mit -b übergebenen Datei
    4 # $Id: build_srpms.pl,v 1.1 2002/09/17 09:50:20 pstorz Exp $
     4# $Id: build_srpms.pl,v 1.2 2002/09/17 10:03:24 pstorz Exp $
    55# Philipp Storz, SuSE Linux AG
    66# pstorz@suse.de
     
    1414
    1515
    16 # Programmoptionen: -b (buildlist)
     16# Programmoptionen: -b (buildlist) -x (xterm)
    1717
    1818my $smartclient_root="../../";   # Pfad, zu dem die Pfade in buildlist stehen
     
    2020our ($opt_b);
    2121my @ArrayofBuilds;
    22 getopts('b:');
     22getopts('b:x');
    2323
    2424if (!$opt_b)
     
    2828print "other buildlist can be specified with -b buildlist\n\n";
    2929$opt_b = "buildlist_srpms";
     30
    3031};
    3132
     
    116117  chomp $workdir;
    117118  print "less +F $workdir/$mypath/$logfilename\n";
     119if ($opt_x)
     120  {
    118121  system "xterm -T \"build log for PACKET: $mypath    ARCH:$ArrayofBuilds[$i][1] \" -e less +F $workdir/$mypath/$logfilename &";
    119122  print "++++++++++++++++++++++++++++++++++++++++++\n";
    120123  $retval = system "cd $mypath; $build >$logfilename 2>&1;";
     124  }
     125  else
     126  {
     127    $retval = system "cd $mypath; $build |tee $logfilename";
     128  }
    121129# $retval = system "./exit.sh 2>&1 > $logfilename;";
    122130
Note: See TracChangeset for help on using the changeset viewer.