view version.sh @ 7610:876495f714dc

Enable -subfps for time based subtitles, too. Please update the DOCS for -subfps: "If you have time-based subtitles like subviewer that can't be synced by -subdelay try specifying -subfps with the framerate of the movie the time-based sub was created for, eg. -subfps 25 if you use subs from a 25 fps movie with a movie using a different framerate. If you need to guess -subfps, try 25, 23.98 and 29.97"
author atmos4
date Sun, 06 Oct 2002 02:59:04 +0000
parents b464616d40b5
children 93694559178c
line wrap: on
line source

#!/bin/sh

last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
if test $? -ne 0 ; then
        # probably no gnu date installed(?), use current date
        last_cvs_update=`date +%y%m%d-%H:%M`
elif test `uname -s` = 'Darwin' ; then
        # darwin's date has different meaning for -r
        last_cvs_update=`date +%y%m%d-%H:%M`
fi

extra=""
if test "$1" ; then
 extra="-$1"
fi
echo "#define VERSION \"CVS-${last_cvs_update}${extra} \"" >version.h