3 # This script will update all the modules listed below so that
4 # common points to master in the common module.
7 # Set this variable to point to any directory containing existing
8 # git # checkouts, and git will pull objects from there, decreasing
9 # network usage. You can also run this script from that directory.
15 modules="gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad \
16 gst-plugins-ugly gst-ffmpeg gst-openmax gst-python \
17 gnonlin gst-plugins-gl"
20 dir=`mktemp -d $topdir/common-update-XXXXXX`
22 for module in $modules
25 if test -e $reference/$module/.git ; then
26 git clone --reference $reference/$module/.git --shared ssh://git.freedesktop.org/git/gstreamer/$module
27 elif test -e $topdir/$module/.git ; then
28 git clone --reference $topdir/$module/.git --shared ssh://git.freedesktop.org/git/gstreamer/$module
30 git clone ssh://git.freedesktop.org/git/gstreamer/$module
35 cd $dir/$module/common
36 ref_from=`git log --pretty=format:%h -n 1 HEAD`
39 ref_to=`git log --pretty=format:%h -n 1 HEAD`
40 echo updating common from $ref_from to $ref_to
41 if [ "$ref_from" != "$ref_to" ] ; then
44 git commit -m "Automatic update of common submodule
46 From $ref_from to $ref_to"
53 for module in $modules