This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA] Patch to gas-test.scm


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]