2005-10-16 12:37:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# update all known gstreamer modules
|
|
|
|
# build them one by one
|
|
|
|
# report failures at the end
|
|
|
|
# run this from a directory that contains the checkouts for each of the
|
|
|
|
# modules
|
|
|
|
|
|
|
|
FAILURE=
|
|
|
|
|
2009-06-13 12:53:24 +00:00
|
|
|
MODULES="\
|
|
|
|
gstreamer gst-plugins-base \
|
|
|
|
gst-plugins-good gst-plugins-ugly gst-plugins-bad \
|
|
|
|
gst-ffmpeg \
|
|
|
|
gst-python \
|
|
|
|
gnonlin"
|
|
|
|
|
|
|
|
for m in $MODULES; do
|
2005-10-16 12:37:14 +00:00
|
|
|
if test -d $m; then
|
2009-06-13 12:53:24 +00:00
|
|
|
echo "+ updating $m"
|
2005-10-16 12:37:14 +00:00
|
|
|
cd $m
|
2009-06-13 12:53:24 +00:00
|
|
|
|
|
|
|
git pull origin master
|
|
|
|
if test $? -ne 0
|
|
|
|
then
|
|
|
|
git stash
|
|
|
|
git pull origin master
|
|
|
|
if test $? -ne 0
|
|
|
|
then
|
|
|
|
git stash apply
|
|
|
|
FAILURE="$FAILURE$m: update\n"
|
|
|
|
else
|
|
|
|
git stash apply
|
|
|
|
fi
|
|
|
|
cd ..
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
git submodule update
|
2005-10-16 12:37:14 +00:00
|
|
|
if test $? -ne 0
|
|
|
|
then
|
|
|
|
FAILURE="$FAILURE$m: update\n"
|
|
|
|
cd ..
|
|
|
|
continue
|
|
|
|
fi
|
2009-06-13 12:53:24 +00:00
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# then build
|
|
|
|
for m in $MODULES; do
|
|
|
|
if test -d $m; then
|
|
|
|
cd $m
|
2008-06-20 16:29:23 +00:00
|
|
|
if test ! -e Makefile
|
|
|
|
then
|
|
|
|
./autoregen.sh
|
|
|
|
if test $? -ne 0
|
|
|
|
then
|
|
|
|
FAILURE="$FAILURE$m: autoregen.sh\n"
|
|
|
|
cd ..
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
make $@
|
2005-10-16 12:37:14 +00:00
|
|
|
if test $? -ne 0
|
|
|
|
then
|
|
|
|
FAILURE="$FAILURE$m: make\n"
|
|
|
|
cd ..
|
|
|
|
continue
|
|
|
|
fi
|
2008-06-20 16:29:23 +00:00
|
|
|
|
|
|
|
make $@ check
|
2005-10-16 12:37:14 +00:00
|
|
|
if test $? -ne 0
|
|
|
|
then
|
|
|
|
FAILURE="$FAILURE$m: check\n"
|
|
|
|
cd ..
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test "x$FAILURE" != "x"; then
|
|
|
|
echo "Failures:"
|
|
|
|
echo
|
|
|
|
echo -e $FAILURE
|
|
|
|
fi
|