[MPlayer-dev-eng] [PATCH] configure: add support for specifying a branch to use.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Feb 24 20:18:39 CET 2014


This is intended for use in release.
---
 configure | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index fab56a7..1448a23 100755
--- a/configure
+++ b/configure
@@ -1507,9 +1507,12 @@ if test -e ffmpeg/.svn ; then
     exit 1
 fi
 
+FFBRANCH=master
+test -e FFBRANCH && FFBRANCH=`cat FFBRANCH`
+
 if test -e ffmpeg/mp_auto_pull ; then
     echo "Updating FFmpeg, (re)move ffmpeg/mp_auto_pull to disable"
-    (cd ffmpeg && git checkout master)
+    (cd ffmpeg && git checkout $FFBRANCH)
     if ! (cd ffmpeg && git pull --rebase --ff-only) ; then
         echo "git pull failed, (re)move ffmpeg/mp_auto_pull to disable pulling"
         exit 1
@@ -1519,7 +1522,7 @@ fi
 if ! test -e ffmpeg ; then
     echo "No FFmpeg checkout, press enter to download one with git or CTRL+C to abort"
     read tmp
-    if ! git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git ffmpeg ; then
+    if ! git clone -b $FFBRANCH --depth 1 git://source.ffmpeg.org/ffmpeg.git ffmpeg ; then
         rm -rf ffmpeg
         echo "Failed to get a FFmpeg checkout"
         echo "Please try again or put FFmpeg source code copy into ffmpeg/ manually."
-- 
1.9.0



More information about the MPlayer-dev-eng mailing list