3 # update all known gstreamer modules
4 # build them one by one
5 # report failures at the end
6 # run this from a directory that contains the checkouts for each of the
12 gstreamer gst-plugins-base"
14 gst-plugins-good gst-plugins-ugly gst-plugins-bad \
20 tmp=$tmp/git-update.$(date +%Y%m%d-%H%M-).$RANDOM.$RANDOM.$RANDOM.$$
22 (umask 077 && mkdir "$tmp") || {
23 echo "Could not create temporary directory! Exiting." 1>&2
27 ERROR_LOG="$tmp/failures.log"
31 for m in $CORE $MODULES; do
36 git pull origin master
39 echo "$m: update (trying stash, pull, stash apply)" >> $ERROR_LOG
41 git pull origin master
44 echo "$m: update" >> $ERROR_LOG
54 echo "$m: update (submodule)" >> $ERROR_LOG
66 if test ! -e Makefile -a -e autoregen.sh
68 echo "+ $1: autoregen.sh"
69 ./autoregen.sh > "$tmp/$1-regen.log" 2>&1
72 echo "$1: autoregen.sh [$tmp/$1-regen.log]" >> $ERROR_LOG
76 echo "+ $1: autoregen.sh done"
78 else if test ! -e Makefile
80 echo "+ $1: autogen.sh"
81 ./autogen.sh > "$tmp/$1-gen.log" 2>&1
84 echo "$1: autogen.sh [$tmp/$1-gen.log]" >> $ERROR_LOG
88 echo "+ $1: autogen.sh done"
92 make > "$tmp/$1-make.log" 2>&1
95 echo "$1: make [$tmp/$1-make.log]" >> $ERROR_LOG
99 echo "+ $1: make done"
101 if test "x$CHECK" != "x"; then
102 echo "+ $1: make check"
103 make check > "$tmp/$1-check.log" 2>&1
106 echo "$1: check [$tmp/$1-check.log]" >> $ERROR_LOG
110 echo "+ $1: make check done"
118 if test -e $ERROR_LOG; then
128 # build core and base plugins sequentially
129 # exit if build fails (excluding checks)
132 if [ $? -eq $ERROR_RETURN ]; then
137 # build other modules in parallel
138 for m in $MODULES; do