summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2012-01-18 20:35:38 -0500
committerGaetan Nadon <memsize@videotron.ca>2012-01-25 14:05:15 -0500
commit116f6703fe951b1a15367fbbdb5df7a34afec5a7 (patch)
tree0056c396535f31985fb5a53710d904fecfd07fef
parente88519afdd703c828ebe92e7262680d143f9dbad (diff)
build.sh: fix incorrect autoresume behaviour in conjonction with -n
When "no stop" option -n is given, all the failed modules were written to the autoresume file. Upon resuming, they were skipped. This patch makes it such that only a successfully built module is added to the file. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rwxr-xr-xbuild.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index 94202c2..5878ef1 100755
--- a/build.sh
+++ b/build.sh
@@ -388,10 +388,6 @@ process() {
return 0
fi
- if [ X"$BUILT_MODULES_FILE" != X ]; then
- echo "$module/$component" >> $BUILT_MODULES_FILE
- fi
-
old_pwd=`pwd`
cd $SRCDIR
if [ $? -ne 0 ]; then
@@ -408,6 +404,9 @@ process() {
failed "$GITCMD" $module $component
return 1
fi
+ if [ X"$BUILT_MODULES_FILE" != X ]; then
+ echo "$module/$component" >> $BUILT_MODULES_FILE
+ fi
return 0
fi
@@ -476,6 +475,9 @@ process() {
failed "$MAKE $MAKEFLAGS $MAKECMD" $module $component
return 1
fi
+ if [ X"$BUILT_MODULES_FILE" != X ]; then
+ echo "$module/$component" >> $BUILT_MODULES_FILE
+ fi
return 0
fi
@@ -536,6 +538,11 @@ process() {
fi
cd ${old_pwd}
+
+ if [ X"$BUILT_MODULES_FILE" != X ]; then
+ echo "$module/$component" >> $BUILT_MODULES_FILE
+ fi
+
return 0
}