changeset 3300:97c6bfbcb7a7

using cc like configure
author jaf
date Mon, 03 Dec 2001 22:28:05 +0000
parents 5f4cf3b52d60
children 308d3031af6b
files version.sh
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/version.sh	Mon Dec 03 22:24:43 2001 +0000
+++ b/version.sh	Mon Dec 03 22:28:05 2001 +0000
@@ -5,6 +5,7 @@
 	# probably no gnu date installed(?), use current date
 	last_cvs_update=`date +%y%m%d-%H:%M`
 fi
-gcc_version=`gcc --version`
+cc=`cat config.mak |grep CC | cut -d '=' -f 2`
+cc_version=`${cc} --version`
 
-echo "#define VERSION \"CVS-${last_cvs_update}-gcc-${gcc_version} \"" >version.h
+echo "#define VERSION \"CVS-${last_cvs_update}${cc}-${cc_version} \"" >version.h