Unified · Split
| @@ -265,12 +265,10 @@ if test "$gprof" = "yes" ; then · 264 unmodified lines | |||
| 265 | echo "TARGET_GPROF=yes" >> config.mak | 265 | echo "TARGET_GPROF=yes" >> config.mak |
| 266 | echo "#define HAVE_GPROF 1" >> $TMPH | 266 | echo "#define HAVE_GPROF 1" >> $TMPH |
| 267 | fi | 267 | fi |
| 268 | echo -n "VERSION=" >>config.mak | 268 | version=`head $source_path/VERSION` |
| 269 | head $source_path/VERSION >>config.mak | 269 | echo "VERSION=$version" >>config.mak |
| 270 | echo "" >>config.mak | 270 | echo "#define TCC_VERSION \"$version\"" >> $TMPH |
| 271 | echo -n "#define TCC_VERSION \"" >> $TMPH | 271 | echo "@set VERSION $version" > config.texi |
| 272 | head $source_path/VERSION >> $TMPH | ||
| 273 | echo "\"" >> $TMPH | ||
| 274 | 272 | ||
| 275 | # build tree in object directory if source path is different from current one | 273 | # build tree in object directory if source path is different from current one |
| 276 | if test "$source_path_used" = "yes" ; then | 274 | if test "$source_path_used" = "yes" ; then |