diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-11-16 15:16:36 +0100 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-11-30 20:25:20 -0600 |
commit | 06edf9983245d4458da128f2a31c03051c771dfc (patch) | |
tree | c2d3b9ea8506fd2a71abe529fa9c72511df2f1ba /g | |
parent | c8eb86592b9c927244724a29569d1b08fc02b233 (diff) |
build: Make the 'g' wrapper in bootstrap really work.
Diffstat (limited to 'g')
-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` |