view version.sh @ 3292:7fa3a928631a

not it looks like this 'MPlayer CVS-011203-19:47-gcc-2.95.3'
author jaf
date Mon, 03 Dec 2001 19:13:34 +0000
parents 24c6d8b06b26
children 97c6bfbcb7a7
line wrap: on
line source

#!/bin/sh

last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
if [ $? -ne 0 ]; then
	# probably no gnu date installed(?), use current date
	last_cvs_update=`date +%y%m%d-%H:%M`
fi
gcc_version=`gcc --version`

echo "#define VERSION \"CVS-${last_cvs_update}-gcc-${gcc_version} \"" >version.h