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"
30 for m in $CORE $MODULES; do
35 git pull origin master
38 echo "$m: update (trying stash, pull, stash apply)" >> $ERROR_LOG
40 git pull origin master
43 echo "$m: update" >> $ERROR_LOG
53 echo "$m: update (submodule)" >> $ERROR_LOG
67 echo "+ $1: autoregen.sh"
68 ./autoregen.sh > "$tmp/$1-regen.log" 2>&1
71 echo "$1: autoregen.sh [$tmp/$1-regen.log]" >> $ERROR_LOG
75 echo "+ $1: autoregen.sh done"
79 make > "$tmp/$1-make.log" 2>&1
82 echo "$1: make [$tmp/$1-make.log]" >> $ERROR_LOG
86 echo "+ $1: make done"
88 if test "x$CHECK" != "x"; then
89 echo "+ $1: make check"
90 make check > "$tmp/$1-check.log" 2>&1
93 echo "$1: check [$tmp/$1-check.log]" >> $ERROR_LOG
97 echo "+ $1: make check done"
105 if test -e $ERROR_LOG; then
114 # build core and base plugins sequentially
115 # exit if build fails (excluding checks)
118 if [ $? == -1 ]; then
123 # build other modules in parallel
124 for m in $MODULES; do