summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2010-11-16 15:16:36 +0100
committerJan Holesovsky <kendy@suse.cz>2010-11-16 15:16:36 +0100
commit50477f0797e0655ca42bf7b8720ac790d75b5429 (patch)
tree6cf23b0987fef6c4087ce57a99eede662646ca93
parentf6fe1de46f349e48aa73a2aa44a6f4e6b2b9a041 (diff)
build: Make the 'g' wrapper in bootstrap really work.
-rwxr-xr-xg16
1 files changed, 11 insertions, 5 deletions
diff --git a/g b/g
index ce43f7208..7e3fd2a01 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`