changeset 239:0a5f3f18d8b4

[project @ 2003-04-13 21:55:37 by bellard] added config.texi
author bellard
date Sun, 13 Apr 2003 21:55:37 +0000
parents a69d8dcfc009
children d61087f12792
files configure
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Apr 13 21:55:08 2003 +0000
+++ b/configure	Sun Apr 13 21:55:37 2003 +0000
@@ -265,12 +265,10 @@
   echo "TARGET_GPROF=yes" >> config.mak
   echo "#define HAVE_GPROF 1" >> $TMPH
 fi
-echo -n "VERSION=" >>config.mak
-head $source_path/VERSION >>config.mak
-echo "" >>config.mak
-echo -n "#define TCC_VERSION \"" >> $TMPH
-head $source_path/VERSION >> $TMPH
-echo "\"" >> $TMPH
+version=`head $source_path/VERSION`
+echo "VERSION=$version" >>config.mak
+echo "#define TCC_VERSION \"$version\"" >> $TMPH
+echo "@set VERSION $version" > config.texi
 
 # build tree in object directory if source path is different from current one
 if test "$source_path_used" = "yes" ; then