annotate version.sh @ 7974:db1f16543379

enable volume filter and fix nonsense default volume (still not usable because mixer.c has no mechanism to pass volume commands to libaf)
author rfelker
date Wed, 30 Oct 2002 04:11:26 +0000
parents b464616d40b5
children 93694559178c
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`
5949
142e0fa289d4 Fix for darwins date
atmos4
parents: 3390
diff changeset
4 if test $? -ne 0 ; then
142e0fa289d4 Fix for darwins date
atmos4
parents: 3390
diff changeset
5 # probably no gnu date installed(?), use current date
142e0fa289d4 Fix for darwins date
atmos4
parents: 3390
diff changeset
6 last_cvs_update=`date +%y%m%d-%H:%M`
142e0fa289d4 Fix for darwins date
atmos4
parents: 3390
diff changeset
7 elif test `uname -s` = 'Darwin' ; then
142e0fa289d4 Fix for darwins date
atmos4
parents: 3390
diff changeset
8 # darwin's date has different meaning for -r
142e0fa289d4 Fix for darwins date
atmos4
parents: 3390
diff changeset
9 last_cvs_update=`date +%y%m%d-%H:%M`
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 672
diff changeset
10 fi
3292
7fa3a928631a not it looks like this 'MPlayer CVS-011203-19:47-gcc-2.95.3'
jaf
parents: 1621
diff changeset
11
7447
a49219323787 moved to to avoid CVS-XXYYZZ- versions (if no given) - altought this comment is bigger than the patch :)
alex
parents: 5949
diff changeset
12 extra=""
7448
b464616d40b5 Should be: if test ; then - D Richard Felker III <dalias@aerifal.cx>
alex
parents: 7447
diff changeset
13 if test "$1" ; then
7447
a49219323787 moved to to avoid CVS-XXYYZZ- versions (if no given) - altought this comment is bigger than the patch :)
alex
parents: 5949
diff changeset
14 extra="-$1"
a49219323787 moved to to avoid CVS-XXYYZZ- versions (if no given) - altought this comment is bigger than the patch :)
alex
parents: 5949
diff changeset
15 fi
a49219323787 moved to to avoid CVS-XXYYZZ- versions (if no given) - altought this comment is bigger than the patch :)
alex
parents: 5949
diff changeset
16 echo "#define VERSION \"CVS-${last_cvs_update}${extra} \"" >version.h