diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-06-06 15:14:45 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-06-06 15:14:45 +0100 |
commit | 60ee556217c97c56a2676f8f9f8a5e19e80d94ed (patch) | |
tree | 435f3b86dcabe7042b989c2d981a4c2f9193ca11 /autogen.sh | |
parent | 8e961ec5efe86e037e60e84be9d9bac029007aee (diff) |
build: Fix the dist - libswscale isn't an external on the 0.5 branch
The 0.5 ffmpeg branch includes libswscale directly, not as an external,
breaking the dist (and warning in autogen.sh) about not being able to
update its revision.
Add some code to not update the svn external if the
FFMPEG_EXTERNALS_REVISION variable is empty.
Also, in autogen.sh check that the current FFmpeg checkout is from the
right branch according to ffmpegrev, and check it out again if
it's not.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh index 2a2e364ce9..8a096a0276 100755 --- a/autogen.sh +++ b/autogen.sh @@ -18,18 +18,28 @@ git submodule update if test -x $have_svn && [ $have_svn ]; then - if test ! -f $FFMPEG_CO_DIR/configure - then + co_ffmpeg=no + + if test ! -f $FFMPEG_CO_DIR/configure; then + co_ffmpeg=yes + else + if ! svn info gst-libs/ext/ffmpeg | grep "URL: $FFMPEG_SVN" > /dev/null; then + echo "FFmpeg checkout is on the wrong branch. Re-fetching." + co_ffmpeg=yes + fi + fi + + if [ "$co_ffmpeg" = "yes" ]; then # checkout ffmpeg from its repository rm -rf $FFMPEG_CO_DIR echo "+ getting ffmpeg from svn" svn -r $FFMPEG_REVISION co $FFMPEG_SVN $FFMPEG_CO_DIR - echo "+ updating externals" - svn update -r $FFMPEG_EXTERNALS_REVISION $FFMPEG_CO_DIR/libswscale else # update ffmpeg from its repository echo "+ updating ffmpeg checkout" svn -r $FFMPEG_REVISION up $FFMPEG_CO_DIR + fi + if [ "x$FFMPEG_EXTERNALS_REVISION" != "x" ]; then echo "+ updating externals" svn update -r $FFMPEG_EXTERNALS_REVISION $FFMPEG_CO_DIR/libswscale fi |