Mercurial > mplayer.hg
view version.sh @ 15438:5f6e6d6cccbc
1.924: windows priority support patch
1.925: Added support of audio stream switching in the MPEG demuxer using the #-key
1.926: Online audio switching is for MPEG files only at the moment.
1.927: Better defaults encoding settings for XviD
1.928: changed :vaspect option to float type
1.929: HRTF update
1.930: Use | for alternatives and - for ranges in option parameter descriptions.
1.931: Make the -priority warning obey the standard formatting.
1.932: hrtf typo fix
author | kraymer |
---|---|
date | Fri, 13 May 2005 16:50:36 +0000 |
parents | e209ca6a0b3e |
children | 7a2d85a8da98 |
line wrap: on
line source
#!/bin/sh OS=`uname -s` case "$OS" in CYGWIN*) last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` ;; Linux) last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` ;; BSD/OS) LS=`ls -lT CVS/Entries` month=`echo $LS | awk -F" " '{print $6}'` day=`echo $LS | awk -F" " '{print $7}'` hms=`echo $LS | awk -F" " '{print $8}'` hour=`echo $hms | awk -F":" '{print $1}'` minute=`echo $hms | awk -F":" '{print $2}'` year=`echo $LS | awk -F" " '{print $9}'` last_cvs_update="${year}${month}${day}-${hour}:${minute}" ;; Darwin) # darwin's date has different meaning for -r last_cvs_update=`date +%y%m%d-%H:%M` ;; *) last_cvs_update=`date +%y%m%d-%H:%M` ;; esac extra="" if test "$1" ; then extra="-$1" fi echo "#define VERSION \"dev-CVS-${last_cvs_update}${extra}\"" >version.h