annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
420
980bafac238f write cvs date+version into version.h
arpi_esp
parents:
diff changeset
1 #!/bin/sh
980bafac238f write cvs date+version into version.h
arpi_esp
parents:
diff changeset
2
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 672
diff changeset
3 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 672
diff changeset
4 if [ $? -ne 0 ]; then
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 672
diff changeset
5 # probably no gnu date installed(?), use current date
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 672
diff changeset
6 last_cvs_update=`date +%y%m%d-%H:%M`
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 672
diff changeset
7 fi
3292
7fa3a928631a not it looks like this 'MPlayer CVS-011203-19:47-gcc-2.95.3'
jaf
parents: 1621
diff changeset
8 gcc_version=`gcc --version`
7fa3a928631a not it looks like this 'MPlayer CVS-011203-19:47-gcc-2.95.3'
jaf
parents: 1621
diff changeset
9
7fa3a928631a not it looks like this 'MPlayer CVS-011203-19:47-gcc-2.95.3'
jaf
parents: 1621
diff changeset
10 echo "#define VERSION \"CVS-${last_cvs_update}-gcc-${gcc_version} \"" >version.h