This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
[RFA] Patch to gas-test.scm
- To: cgen at sources dot redhat dot com
- Subject: [RFA] Patch to gas-test.scm
- From: Ben Elliston <bje at redhat dot com>
- Date: Tue, 31 Oct 2000 16:40:23 +1100
Here is a convenient enhancement that makes it possible to omit the
path to the gas build tree when cgen has been configured as part of a
larger tree. Okay to commit?
2000-10-31 Ben Elliston <bje@redhat.com>
* gas-test.scm (cgen-build.sh): Allow the generated script to run
with no command line arguments if the gas build directory can be
determined.
*** gas-test.scm 2000/10/06 17:01:33 1.26
--- gas-test.scm 2000/10/31 05:04:16
***************
*** 171,181 ****
#
# Syntax: build.sh /path/to/build/gas
! BUILD=$1
!
! if [ ! -f $BUILD/as-new ] ; then
echo \"$BUILD is not a GAS build directory.\"
exit 1
fi
# Put results here, so we preserve the existing set for comparison.
--- 171,188 ----
#
# Syntax: build.sh /path/to/build/gas
! if [ -x ../gas/as-new ] ; then
! BUILD=`pwd`/../gas
! else
! if [ $# != 1 ] ; then
! echo \"Usage: $0 /path/to/gas/build\"
! exit 1
! fi
! BUILD=$1
! if [ ! -x $BUILD/as-new ] ; then
echo \"$BUILD is not a GAS build directory.\"
exit 1
+ fi
fi
# Put results here, so we preserve the existing set for comparison.