V3 PATCH: mkcheck.in vs Bash 2

Mark Mitchell mark@codesourcery.com
Wed Nov 15 16:59:00 GMT 2000


The mkcheck.in script apparently requires GNU Bash version 2.  It
checks for this, and exits immediately if the right version is not
available.

Unfortunately, since this script is also used as part of `make
check-g++', this means that you can't run the C++ tests on a machine
without Bash 2.

We'd have to rewrite this script in plain portable shell, except that
Gaby is converting the V3 testsuite to DejaGNU anyhow.  But, in the
very short term, this patch just makes it possible to run the C++
testsuite -- as long as you have some version of Bash installed.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-11-15  Mark Mitchell  <mark@codesourcery.com>

	* mkcheckin.in: Move check for bash version 2 later in the file.

Index: mkcheck.in
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/mkcheck.in,v
retrieving revision 1.33
diff -c -p -r1.33 mkcheck.in
*** mkcheck.in	2000/11/14 16:38:02	1.33
--- mkcheck.in	2000/11/16 00:55:08
***************
*** 19,31 ****
  ### XXX Note that breaking out of this with ^C will not work.  Dunno why.
  
  
- # This has been true all along.  Found out about it the hard way...
- case $BASH_VERSION in
-     1*)  echo 'You need bash 2.x to run mkcheck.  Exiting.'; exit 1 ;;
-     *)   ;;   # ??
- esac
- 
- 
  #
  # 1: variables
  #
--- 19,24 ----
*************** if [ $WHICH -eq 2 ]; then
*** 90,95 ****
--- 83,94 ----
    echo $INC_PATH -I$SRC_DIR/include/backward -I$SRC_DIR/include/ext
    exit 0;
  fi
+ 
+ # This has been true all along.  Found out about it the hard way...
+ case $BASH_VERSION in
+     1*)  echo 'You need bash 2.x to run mkcheck.  Exiting.'; exit 1 ;;
+     *)   ;;   # ??
+ esac
  
  # It's not dejagnu; we need to do things ourselves.  Pick up any extra
  # settings for this target.


More information about the Libstdc++ mailing list