You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/04/02 05:40:14 UTC
[incubator-nuttx] branch master updated: testbuild.sh: Use git
clean instead of make distclean
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 27142b2 testbuild.sh: Use git clean instead of make distclean
27142b2 is described below
commit 27142b2e3c4c6498dc198818ec9b260d8ffff12f
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Apr 2 13:43:21 2020 +0900
testbuild.sh: Use git clean instead of make distclean
As the former is considerably faster.
---
tools/testbuild.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tools/testbuild.sh b/tools/testbuild.sh
index a5b0221..8025f1d 100755
--- a/tools/testbuild.sh
+++ b/tools/testbuild.sh
@@ -151,10 +151,15 @@ function makefunc {
# Clean up after the last build
+function distclean_with_git {
+ git -C $nuttx clean -xfdq
+ git -C $APPSDIR clean -xfdq
+}
+
function distclean {
if [ -f .config ]; then
echo " Cleaning..."
- makefunc ${JOPTION} ${MAKE_FLAGS} distclean 1>/dev/null
+ distclean_with_git || makefunc ${JOPTION} ${MAKE_FLAGS} distclean 1>/dev/null
fi
}