annotate version.sh @ 10686:8eb690f0e342

- seek() is always synchronized to keyframes, so the decoders don't crash anymore; successfully tested with libmpeg2 and ffmpeg12 - support for tables PAT and PMT, used the associate pids to program and to play the right streams - option -tsprog <number> to specify the chosen program (-vid and -aid still override the single stream pids) - initial support for MPEG4 in TS (M4V is working, but not AAC yet) - defragmenting mechanism (without buffering, so it has 0 added cost) to improve the playback of high bitrate movies - refers to demux_mpg_control() to get length and percentage position in the stream patch by Nico <nsabbi@libero.it>
author arpi
date Sun, 24 Aug 2003 18:07:00 +0000
parents b522f0f85387
children e209ca6a0b3e
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
8687
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
3 OS=`uname -s`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
4 case "$OS" in
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
5 Linux)
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
6 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
7 ;;
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
8 BSD/OS)
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
9 LS=`ls -lT CVS/Entries`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
10 month=`echo $LS | awk -F" " '{print $6}'`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
11 day=`echo $LS | awk -F" " '{print $7}'`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
12 hms=`echo $LS | awk -F" " '{print $8}'`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
13 hour=`echo $hms | awk -F":" '{print $1}'`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
14 minute=`echo $hms | awk -F":" '{print $2}'`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
15 year=`echo $LS | awk -F" " '{print $9}'`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
16 last_cvs_update="${year}${month}${day}-${hour}:${minute}"
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
17 ;;
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
18 Darwin)
5949
142e0fa289d4 Fix for darwins date
atmos4
parents: 3390
diff changeset
19 # darwin's date has different meaning for -r
8687
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
20 last_cvs_update=`date +%y%m%d-%H:%M`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
21 ;;
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
22 *)
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
23 last_cvs_update=`date +%y%m%d-%H:%M`
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
24 ;;
93694559178c better BSD/OS support by Steven Schultz <sms@2bsd.com>
alex
parents: 7448
diff changeset
25 esac
3292
7fa3a928631a not it looks like this 'MPlayer CVS-011203-19:47-gcc-2.95.3'
jaf
parents: 1621
diff changeset
26
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
27 extra=""
7448
b464616d40b5 Should be: if test ; then - D Richard Felker III <dalias@aerifal.cx>
alex
parents: 7447
diff changeset
28 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
29 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
30 fi
10421
b522f0f85387 the trailing space isn't needed anymore
alex
parents: 9374
diff changeset
31 echo "#define VERSION \"dev-CVS-${last_cvs_update}${extra}\"" >version.h