From c5c7999753cb21b744c792c3bcee14b439c7af42 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 22 Apr 2017 11:15:07 -0400 Subject: [PATCH] Ensure the tree is clean before building the distribution archive. --- platform-independent/cli-c/distribute | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform-independent/cli-c/distribute b/platform-independent/cli-c/distribute index 64a72485..c826addb 100755 --- a/platform-independent/cli-c/distribute +++ b/platform-independent/cli-c/distribute @@ -11,8 +11,12 @@ mpwArchive=mpw-$commit.tar.gz [[ -e $mpwArchive ]] && echo >&2 "WARNING: $mpwArchive already exists. Will overwrite." read -n1 -p "Will prepare and release $mpwArchive. Press a key to continue or ^C to abort." +echo "Cleaning .." +./clean + echo "Creating archive $mpwArchive .." git ls-files -z . | xargs -0 tar -Lcvzf "$mpwArchive" + echo "Creating archive signature $mpwArchive.sig .." gpg --detach-sign "$mpwArchive"