summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2010-11-16 15:16:36 +0100
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-11-30 20:25:20 -0600
commit06edf9983245d4458da128f2a31c03051c771dfc (patch)
treec2d3b9ea8506fd2a71abe529fa9c72511df2f1ba /g
parentc8eb86592b9c927244724a29569d1b08fc02b233 (diff)
build: Make the 'g' wrapper in bootstrap really work.
Diffstat (limited to 'g')
-rwxr-xr-xg16
1 files changed, 11 insertions, 5 deletions
diff --git a/g b/g
index ce43f7208291..7e3fd2a01332 100755
--- a/g
+++ b/g
@@ -111,18 +111,24 @@ while shift ; do
done
# do it!
-cd "$CLONEDIR"
-DIRS=". `ls`"
+DIRS="bootstrap `(cd $CLONEDIR ; ls)`"
if [ "$COMMAND" = "clone" ] ; then
DIRS="artwork base calc components extensions extras filters
help impress libs-core libs-extern libs-extern-sys libs-gui
postprocess sdk testing ure writer"
fi
-for DIR in $DIRS ; do
+for D in $DIRS ; do
+ DIR="$CLONEDIR/$D"
+ NAME="$D"
+ if [ "$D" = "bootstrap" ] ; then
+ DIR="$RAWBUILDDIR"
+ NAME="main repo"
+ fi
+
if [ \( -d "$DIR" -a -d "$DIR"/.git \) -o \( "$COMMAND" = "clone" \) ] ; then
(
# executed in a subshell
- [ "$COMMAND" != "clone" ] && cd $DIR
+ [ "$COMMAND" != "clone" ] && cd "$DIR"
# relativize the absolutized params again if we want to operate
# only on the files belonging to this exact repo
@@ -183,7 +189,7 @@ for DIR in $DIRS ; do
;;
esac
- [ "$REPORT_REPOS" = "1" ] && echo "===== $DIR ====="
+ [ "$REPORT_REPOS" = "1" ] && echo "===== $NAME ====="
# check for changes
HEADREF=`git show-ref --head HEAD`