view version.sh @ 15447:a246c4454efc

1.961: vo_quartz and vo_macosx support -ontop as well. 1.962: vo_ggi now supports ontop. 1.963: sync to x264 rev223 (options: ratetol, vbv_*) + also added: qp_step 1.964: Document -vf pp=ac. 1.965: Document -hr-edl-seek, based on a description by Oded Shimon. 1.966: added some hyphens in quoted examples 1.967: -edl works with MEncoder as well. 1.968: wording fix (skipped) + That key is really called 'Apfel'. happily fixed
author kraymer
date Fri, 13 May 2005 23:19:06 +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