Mercurial > mplayer.hg
comparison version.sh @ 3300:97c6bfbcb7a7
using cc like configure
author | jaf |
---|---|
date | Mon, 03 Dec 2001 22:28:05 +0000 |
parents | 7fa3a928631a |
children | d31a4f29aed1 |
comparison
equal
deleted
inserted
replaced
3299:5f4cf3b52d60 | 3300:97c6bfbcb7a7 |
---|---|
3 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` | 3 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` |
4 if [ $? -ne 0 ]; then | 4 if [ $? -ne 0 ]; then |
5 # probably no gnu date installed(?), use current date | 5 # probably no gnu date installed(?), use current date |
6 last_cvs_update=`date +%y%m%d-%H:%M` | 6 last_cvs_update=`date +%y%m%d-%H:%M` |
7 fi | 7 fi |
8 gcc_version=`gcc --version` | 8 cc=`cat config.mak |grep CC | cut -d '=' -f 2` |
9 cc_version=`${cc} --version` | |
9 | 10 |
10 echo "#define VERSION \"CVS-${last_cvs_update}-gcc-${gcc_version} \"" >version.h | 11 echo "#define VERSION \"CVS-${last_cvs_update}${cc}-${cc_version} \"" >version.h |