diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-11-16 15:16:36 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-11-16 15:16:36 +0100 |
commit | 50477f0797e0655ca42bf7b8720ac790d75b5429 (patch) | |
tree | 6cf23b0987fef6c4087ce57a99eede662646ca93 | |
parent | f6fe1de46f349e48aa73a2aa44a6f4e6b2b9a041 (diff) |
build: Make the 'g' wrapper in bootstrap really work.
-rwxr-xr-x | g | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -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` |