[gst-cvs] gstreamer: Update scripts/cvs-update.sh to git-update.sh; add git-version. sh
Stefan Kost
ensonic at hora-obscura.de
Sun Jun 14 00:31:00 PDT 2009
Thomas Vander Stichele schrieb:
> Module: gstreamer
> Branch: master
> Commit: 9cc750765e76f41ed508bbf2e69ac451834b3f3c
> URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=9cc750765e76f41ed508bbf2e69ac451834b3f3c
>
> Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
> Date: Sat Jun 13 14:53:24 2009 +0200
>
> 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
>
> ---
>
> scripts/{cvs-update.sh => git-update.sh} | 41 ++++++++++++++++++++++++-----
> scripts/git-version.sh | 25 ++++++++++++++++++
> 2 files changed, 59 insertions(+), 7 deletions(-)
>
> diff --git a/scripts/cvs-update.sh b/scripts/git-update.sh
> similarity index 59%
> rename from scripts/cvs-update.sh
> rename to scripts/git-update.sh
> index a0437e1..bd66745 100755
> --- a/scripts/cvs-update.sh
> +++ b/scripts/git-update.sh
> @@ -8,21 +8,48 @@
>
> FAILURE=
>
> -for m in \
> - gstreamer gst-plugins-base \
> - gst-plugins-good gst-plugins-ugly gst-plugins-bad \
> - gst-ffmpeg \
> - gst-python \
> - ; do
> +MODULES="\
> + gstreamer gst-plugins-base \
> + gst-plugins-good gst-plugins-ugly gst-plugins-bad \
> + gst-ffmpeg \
> + gst-python \
> + gnonlin"
> +
> +for m in $MODULES; do
> if test -d $m; then
> + echo "+ updating $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
I think "git stash pop" is better (apply + clear)
Stefan
> + fi
> + cd ..
> + continue
> + fi
> + git submodule update
> if test $? -ne 0
> then
> FAILURE="$FAILURE$m: update\n"
> cd ..
> continue
> fi
> + cd ..
> + fi
> +done
> +
> +# then build
> +for m in $MODULES; do
> + if test -d $m; then
> + cd $m
> if test ! -e Makefile
> then
> ./autoregen.sh
> diff --git a/scripts/git-version.sh b/scripts/git-version.sh
> new file mode 100644
> index 0000000..e92c4c5
> --- /dev/null
> +++ b/scripts/git-version.sh
> @@ -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
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> gstreamer-cvs mailing list
> gstreamer-cvs at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs
More information about the Gstreamer-commits
mailing list