[ooo-build-commit] .: bin/g
Jan Holesovsky
kendy at kemper.freedesktop.org
Fri Aug 27 02:36:18 PDT 2010
bin/g | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
New commits:
commit aa0e25f65af26fba0ff7d2e66ab980e51e05444f
Author: Jan Holesovsky <kendy at suse.cz>
Date: Fri Aug 27 11:34:46 2010 +0200
Handle the post-git operations in one 'case' statement.
diff --git a/bin/g b/bin/g
index 05bf357..cf80058 100755
--- a/bin/g
+++ b/bin/g
@@ -156,17 +156,21 @@ for DIR in * ; do
NEWHEADREF=`git show-ref --head HEAD`
[ "$HEADREF" != "$NEWHEADREF" ] && touch $CLONEDIR/repos_changed
- # git status returns error in some versions; we want to continue
- [ "$COMMAND" = "status" ] && RETURN=0
-
- if [ "$COMMAND" = "pull" ] ; then
- for link in `ls` ; do
- if [ ! -e "$RAWBUILDDIR/$link" ] ; then
- echo "Creating missing link $link"
- ln -s "$CLONEDIR/$DIR/$link" "$RAWBUILDDIR/$link"
- fi
- done
- fi
+ case "$COMMAND" in
+ pull)
+ # update links
+ for link in `ls` ; do
+ if [ ! -e "$RAWBUILDDIR/$link" ] ; then
+ echo "Creating missing link $link"
+ ln -s "$CLONEDIR/$DIR/$link" "$RAWBUILDDIR/$link"
+ fi
+ done
+ ;;
+ status)
+ # git status returns error in some versions, clear that
+ RETURN=0
+ ;;
+ esac
exit $RETURN
) || exit $?
More information about the ooo-build-commit
mailing list