aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorThomas Vander Stichele2003-01-05 05:31:42 -0600
committerThomas Vander Stichele2003-01-05 05:31:42 -0600
commitfae586dc81af905eee55e4d139a31c5edb6f76dc (patch)
tree3fa9521ebd45a820c81228fe7f9907440526ee7b /m4
parent6216d49d8d559997166c8a2ab2f8d6b1b04b9a83 (diff)
downloadgst-plugins-bad0-10-fae586dc81af905eee55e4d139a31c5edb6f76dc.tar.gz
gst-plugins-bad0-10-fae586dc81af905eee55e4d139a31c5edb6f76dc.tar.xz
gst-plugins-bad0-10-fae586dc81af905eee55e4d139a31c5edb6f76dc.zip
changing ffmpeg to only update when required
Original commit message from CVS: changing ffmpeg to only update when required
Diffstat (limited to 'm4')
-rw-r--r--m4/as-slurp-ffmpeg.m436
1 files changed, 24 insertions, 12 deletions
diff --git a/m4/as-slurp-ffmpeg.m4 b/m4/as-slurp-ffmpeg.m4
index eb1b88b47..9108edbfa 100644
--- a/m4/as-slurp-ffmpeg.m4
+++ b/m4/as-slurp-ffmpeg.m4
@@ -1,13 +1,19 @@
1dnl slurp-ffmpeg.m4 0.1.0 1dnl slurp-ffmpeg.m4 0.1.1
2dnl a macro to slurp in ffmpeg's cvs source inside a project tree 2dnl a macro to slurp in ffmpeg's cvs source inside a project tree
3dnl taken from Autostar Sandbox, http://autostars.sourceforge.net/ 3dnl taken from Autostar Sandbox, http://autostars.sourceforge.net/
4 4
5dnl Usage: 5dnl Usage:
6dnl AS_SLURP_FFMPEG(DIRECTORY, DATE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) 6dnl AS_SLURP_FFMPEG(DIRECTORY, DATE, [ACTION-IF-WORKED [, ACTION-IF-NOT-WORKED]]])
7dnl 7dnl
8dnl Example: 8dnl Example:
9dnl AM_PATH_FFMPEG(lib/ffmpeg, "2002-12-14 12:00 GMT") 9dnl AM_PATH_FFMPEG(lib/ffmpeg, 2002-12-14 12:00 GMT)
10nl 10dnl
11dnl make sure you have a Tag file in the dir where you check out that
12dnl is the Tag of CVS you want to have checked out
13dnl it should correspond to the DATE argument you supply, ie resolve to
14dnl the same date
15dnl (in an ideal world, cvs would understand it's own Tag file format as
16dnl a date spec)
11 17
12AC_DEFUN(AS_SLURP_FFMPEG, 18AC_DEFUN(AS_SLURP_FFMPEG,
13[ 19[
@@ -20,24 +26,30 @@ AC_DEFUN(AS_SLURP_FFMPEG,
20 if test ! -d ffmpeg/CVS; then 26 if test ! -d ffmpeg/CVS; then
21 # check out cvs code 27 # check out cvs code
22 AC_MSG_NOTICE(checking out ffmpeg cvs code from $2 into $1) 28 AC_MSG_NOTICE(checking out ffmpeg cvs code from $2 into $1)
23 cvs -Q -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co -D $2 ffmpeg || FAILED=yes 29 cvs -Q -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co -D '$2' ffmpeg || FAILED=yes
24 cd ffmpeg 30 cd ffmpeg
25 else 31 else
26 cd ffmpeg 32 # compare against Tag file and see if it needs updating
27 AC_MSG_NOTICE(updating ffmpeg cvs code) 33 if diff -q Tag ffmpeg/CVS/Tag > /dev/null 2> /dev/null
28 cvs -Q update -dP -D $2 || FAILED=yes 34 then
35 # diff returned no problem
36 AC_MSG_NOTICE(ffmpeg cvs code in sync)
37 else
38 # diff says they differ
39 cd ffmpeg
40 AC_MSG_NOTICE(updating ffmpeg cvs code)
41 cvs -Q update -dP -D '$2' || FAILED=yes
42 fi
29 fi 43 fi
30 44
31 # now configure it
32 AC_MSG_NOTICE(configuring ffmpeg cvs code)
33 ./configure
34
35 # now go back 45 # now go back
36 cd $DIRECTORY 46 cd $DIRECTORY
37 47
38 if test "x$FAILED" == "xyes"; then 48 if test "x$FAILED" == "xyes"; then
39 [$4] 49 [$4]
50 false
40 else 51 else
41 [$3] 52 [$3]
53 true
42 fi 54 fi
43]) 55])