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 if test -e autoregen.sh
70 echo "+ $1: autoregen.sh"
71 ./autoregen.sh > "$tmp/$1-regen.log" 2>&1
74 echo "$1: autoregen.sh [$tmp/$1-regen.log]" >> $ERROR_LOG
78 echo "+ $1: autoregen.sh done"
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"
93 make > "$tmp/$1-make.log" 2>&1
96 echo "$1: make [$tmp/$1-make.log]" >> $ERROR_LOG
100 echo "+ $1: make done"
102 if test "x$CHECK" != "x"; then
103 echo "+ $1: make check"
104 make check > "$tmp/$1-check.log" 2>&1
107 echo "$1: check [$tmp/$1-check.log]" >> $ERROR_LOG
111 echo "+ $1: make check done"
119 if test -e $ERROR_LOG; then
129 # build core and base plugins sequentially
130 # exit if build fails (excluding checks)
133 if [ $? -eq $ERROR_RETURN ]; then
138 # build other modules in parallel
139 for m in $MODULES; do