Update scripts/cvs-update.sh to git-update.sh; add git-version.sh

add script to get git versions
    first update all, then build
    add gnonlin too
    specify where to pull from
    also update submodule
    rename and change cvs-update script to git-update
This commit is contained in:
Thomas Vander Stichele 2009-06-13 14:53:24 +02:00
parent 674447fafe
commit 9cc750765e
2 changed files with 59 additions and 7 deletions

View file

@ -8,21 +8,48 @@
FAILURE= FAILURE=
for m in \ MODULES="\
gstreamer gst-plugins-base \ gstreamer gst-plugins-base \
gst-plugins-good gst-plugins-ugly gst-plugins-bad \ gst-plugins-good gst-plugins-ugly gst-plugins-bad \
gst-ffmpeg \ gst-ffmpeg \
gst-python \ gst-python \
; do gnonlin"
for m in $MODULES; do
if test -d $m; then if test -d $m; then
echo "+ updating $m"
cd $m cd $m
cvs update -dP
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
if test $? -ne 0 if test $? -ne 0
then then
FAILURE="$FAILURE$m: update\n" FAILURE="$FAILURE$m: update\n"
cd .. cd ..
continue continue
fi fi
cd ..
fi
done
# then build
for m in $MODULES; do
if test -d $m; then
cd $m
if test ! -e Makefile if test ! -e Makefile
then then
./autoregen.sh ./autoregen.sh

25
scripts/git-version.sh Normal file
View file

@ -0,0 +1,25 @@
#!/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=
for m in \
gstreamer gst-plugins-base \
gst-plugins-good gst-plugins-ugly gst-plugins-bad \
gst-ffmpeg \
gst-python \
gnonlin \
; do
if test -d $m; then
cd $m
echo $m
git branch | grep '*'
git log | head -n 1
cd ..
fi
done