From 56a515c5eaaa981335d2d201c6d7695bb19f4c39 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 22 Apr 2017 12:20:52 -0400 Subject: [PATCH] Improve clean methods. --- platform-independent/cli-c/clean | 2 +- platform-independent/cli-c/distribute | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform-independent/cli-c/clean b/platform-independent/cli-c/clean index 0574fd10..00fa656e 100755 --- a/platform-independent/cli-c/clean +++ b/platform-independent/cli-c/clean @@ -5,4 +5,4 @@ set -e cd "${BASH_SOURCE%/*}" rm -vfr lib/*/{.unpacked,.patched,src} lib/include -rm -vfr {core,cli}{*.o,*.dSYM} mpw mpw-bench mpw-tests +rm -vfr {core,cli,.}/{*.o,*.dSYM} mpw mpw-bench mpw-tests diff --git a/platform-independent/cli-c/distribute b/platform-independent/cli-c/distribute index c826addb..45ad9c54 100755 --- a/platform-independent/cli-c/distribute +++ b/platform-independent/cli-c/distribute @@ -12,7 +12,7 @@ mpwArchive=mpw-$commit.tar.gz read -n1 -p "Will prepare and release $mpwArchive. Press a key to continue or ^C to abort." echo "Cleaning .." -./clean +( git clean -fdx . && cd core && git clean -fdx . ) echo "Creating archive $mpwArchive .." git ls-files -z . | xargs -0 tar -Lcvzf "$mpwArchive"