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 \
22 tmp=$tmp/git-update.$(date +%Y%m%d-%H%M-).$RANDOM.$RANDOM.$RANDOM.$$
24 (umask 077 && mkdir "$tmp") || {
25 echo "Could not create temporary directory! Exiting." 1>&2
29 ERROR_LOG="$tmp/failures.log"
32 CPUCORES=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo "1")
34 for m in $CORE $MODULES $EXTRA_MODULES; do
42 echo "$m: update (trying stash, pull, stash apply)" >> $ERROR_LOG
47 echo "$m: update" >> $ERROR_LOG
57 echo "$m: update (submodule)" >> $ERROR_LOG
71 if test -e autoregen.sh
73 echo "+ $1: autoregen.sh"
74 ./autoregen.sh > "$tmp/$1-regen.log" 2>&1
77 echo "$1: autoregen.sh [$tmp/$1-regen.log]" >> $ERROR_LOG
81 echo "+ $1: autoregen.sh done"
83 echo "+ $1: autogen.sh"
84 ./autogen.sh > "$tmp/$1-gen.log" 2>&1
87 echo "$1: autogen.sh [$tmp/$1-gen.log]" >> $ERROR_LOG
91 echo "+ $1: autogen.sh done"
96 MAKEFLAGS="-j$CPUCORES $MAKEFLAGS" make > "$tmp/$1-make.log" 2>&1
99 echo "$1: make [$tmp/$1-make.log]" >> $ERROR_LOG
103 echo "+ $1: make done"
105 if test "x$CHECK" != "x"; then
106 echo "+ $1: make check"
107 make check > "$tmp/$1-check.log" 2>&1
110 echo "$1: check [$tmp/$1-check.log]" >> $ERROR_LOG
114 echo "+ $1: make check done"
122 if test -e $ERROR_LOG; then
133 # build core and base plugins sequentially
134 # exit if build fails (excluding checks)
137 if [ $? -eq $ERROR_RETURN ]; then
142 # build other modules in parallel
143 for m in $MODULES $EXTRA_MODULES; do