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
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"
80 make > "$tmp/$1-make.log" 2>&1
83 echo "$1: make [$tmp/$1-make.log]" >> $ERROR_LOG
87 echo "+ $1: make done"
89 if test "x$CHECK" != "x"; then
90 echo "+ $1: make check"
91 make check > "$tmp/$1-check.log" 2>&1
94 echo "$1: check [$tmp/$1-check.log]" >> $ERROR_LOG
98 echo "+ $1: make check done"
106 if test -e $ERROR_LOG; then
116 # build core and base plugins sequentially
117 # exit if build fails (excluding checks)
120 if [ $? -eq $ERROR_RETURN ]; then
125 # build other modules in parallel
126 for m in $MODULES; do