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 \
17 gst-editing-services \
23 tmp=$tmp/git-update.$(date +%Y%m%d-%H%M-).$RANDOM.$RANDOM.$RANDOM.$$
25 (umask 077 && mkdir "$tmp") || {
26 echo "Could not create temporary directory! Exiting." 1>&2
30 ERROR_LOG="$tmp/failures.log"
33 for m in $CORE $MODULES $EXTRA_MODULES; do
41 echo "$m: update (trying stash, pull, stash apply)" >> $ERROR_LOG
46 echo "$m: update" >> $ERROR_LOG
56 echo "$m: update (submodule)" >> $ERROR_LOG
70 if test -e autoregen.sh
72 echo "+ $1: autoregen.sh"
73 ./autoregen.sh > "$tmp/$1-regen.log" 2>&1
76 echo "$1: autoregen.sh [$tmp/$1-regen.log]" >> $ERROR_LOG
80 echo "+ $1: autoregen.sh done"
82 echo "+ $1: autogen.sh"
83 ./autogen.sh > "$tmp/$1-gen.log" 2>&1
86 echo "$1: autogen.sh [$tmp/$1-gen.log]" >> $ERROR_LOG
90 echo "+ $1: autogen.sh done"
95 make > "$tmp/$1-make.log" 2>&1
98 echo "$1: make [$tmp/$1-make.log]" >> $ERROR_LOG
102 echo "+ $1: make done"
104 if test "x$CHECK" != "x"; then
105 echo "+ $1: make check"
106 make check > "$tmp/$1-check.log" 2>&1
109 echo "$1: check [$tmp/$1-check.log]" >> $ERROR_LOG
113 echo "+ $1: make check done"
121 if test -e $ERROR_LOG; then
132 # build core and base plugins sequentially
133 # exit if build fails (excluding checks)
136 if [ $? -eq $ERROR_RETURN ]; then
141 # build other modules in parallel
142 for m in $MODULES; do