From mboxrd@z Thu Jan 1 00:00:00 1970 From: H.J. Lu To: egcs@cygnus.com Subject: A patch for configure.in Date: Sun, 17 Aug 1997 16:44:17 -0000 Message-id: X-SW-Source: 1997-08/0033.html Can we use this patch? I'd like to keep the binaries for all versions if my disk space allows. Thanks. -- H.J. Lu (hjl@gnu.ai.mit.edu) -- Sun Aug 17 09:17:32 1997 H.J. Lu (hjl@gnu.ai.mit.edu) * configure.in (version): set version to MM.mm.pp-yymmdd. Index: configure.in =================================================================== RCS file: /home/work/cvs/gnu/egcs/configure.in,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 configure.in --- configure.in 1997/08/16 03:48:37 1.1.1.1 +++ configure.in 1997/08/17 16:16:19 @@ -2746,7 +2746,10 @@ fi # Get the version number from the toplevel -version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c` +dnl We need to use [ and ] for other purposes for a while now. +changequote(,)dnl +version=`sed -e 's/\([0-9][^ ]*\)[ ]*[a-zA-Z]*[ ]*/\1-/' -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c` +changequote([,])dnl # Are we using gcc as the native compiler? case $host in