Last change
on this file since 5776 was 5776, checked in by vboxsync, 17 years ago |
ffmpeg: exported to OSE
|
-
Property svn:executable
set to
*
|
File size:
399 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | svn_revision=`cd "$1" && 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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.