~ubuntu-branches/ubuntu/hardy/ffmpeg/hardy

« back to all changes in this revision

Viewing changes to version.sh

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-08-23 14:35:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060823143552-8fxnur5b9gesr03m
Tags: 3:0.cvs20060823-0ubuntu1
* Sync with Debian:
  + Add the epoch again

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
 
4
test $svn_revision || svn_revision=UNKNOWN
 
5
 
 
6
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
 
7
OLD_REVISION=`cat version.h 2> /dev/null`
 
8
 
 
9
# Update version.h only on revision changes to avoid spurious rebuilds
 
10
if test "$NEW_REVISION" != "$OLD_REVISION"; then
 
11
    echo "$NEW_REVISION" > version.h
 
12
fi