Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 19045 invoked by uid 500); 28 Jul 2003 15:09:41 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 19002 invoked by uid 500); 28 Jul 2003 15:09:41 -0000 Received: (qmail 18978 invoked from network); 28 Jul 2003 15:09:41 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 28 Jul 2003 15:09:41 -0000 Received: (qmail 89962 invoked by uid 1652); 28 Jul 2003 15:09:40 -0000 Date: 28 Jul 2003 15:09:40 -0000 Message-ID: <20030728150940.89961.qmail@icarus.apache.org> From: antoine@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/etc/testcases/taskdefs/exec spawn.sh X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N antoine 2003/07/28 08:09:40 Modified: src/etc/testcases/taskdefs/exec spawn.sh Log: converted to UNIX format, there were some backslash rs checked in Revision Changes Path 1.2 +15 -15 ant/src/etc/testcases/taskdefs/exec/spawn.sh Index: spawn.sh =================================================================== RCS file: /home/cvs/ant/src/etc/testcases/taskdefs/exec/spawn.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- spawn.sh 28 Jul 2003 13:38:09 -0000 1.1 +++ spawn.sh 28 Jul 2003 15:09:39 -0000 1.2 @@ -1,15 +1,15 @@ -sleeptime=10 -logfile=spawn.log -if [ $# -ge 1 ]; then - sleeptime=$1 - echo $sleeptime -fi -if [ $# -ge 2 ]; then - logfile=$2 - echo $logfile -fi -echo hello -rm $logfile -sleep $sleeptime -echo bye bye > $logfile -echo bye bye +sleeptime=10 +logfile=spawn.log +if [ $# -ge 1 ]; then + sleeptime=$1 + echo $sleeptime +fi +if [ $# -ge 2 ]; then + logfile=$2 + echo $logfile +fi +echo hello +rm $logfile +sleep $sleeptime +echo bye bye > $logfile +echo bye bye --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org