Commit 1cfef16f authored by Dejan Sakelšak's avatar Dejan Sakelšak Committed by Edward Hervey

autogen.sh: Check for Subversion presence.

Original commit message from CVS:
Patch by: Dejan Sakelšak <sakdean at gmail dot com>
* autogen.sh:
Check for Subversion presence.
parent 1ffe547e
This diff is collapsed.
......@@ -4,7 +4,7 @@
DIE=0
package=gst-ffmpeg
srcfile=configure.ac
have_svn=`which svn`
# FFMPEG specific properties
. ./ffmpegrev
......@@ -16,23 +16,28 @@ then
cvs co common
fi
if test ! -f $FFMPEG_CO_DIR/configure
if test -x $have_svn && [ $have_svn ];
then
if test ! -f $FFMPEG_CO_DIR/configure
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"
sh -c "$FFMPEG_EXTERNALS_UPDATE"
else
# update ffmpeg from its repository
echo "+ updating ffmpeg checkout"
svn -r $FFMPEG_REVISION up $FFMPEG_CO_DIR
echo "+ updating externals"
sh -c "$FFMPEG_EXTERNALS_UPDATE"
fi
else
# update ffmpeg from its repository
echo "+ updating ffmpeg checkout"
svn -r $FFMPEG_REVISION up $FFMPEG_CO_DIR
echo "+ updating externals"
sh -c "$FFMPEG_EXTERNALS_UPDATE"
echo "Subversion needed for ffmpeg checkout, please install and/or add to \$PATH"
exit 0
fi
# source helper functions
if test ! -f common/gst-autogen.sh;
then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment