From 82c96ddfe3504605cd67f6344cc1418ad156eb1a Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sun, 21 Dec 2014 23:55:10 -0500 Subject: [PATCH] Update distribute script to include source files for symlinks. --- MasterPassword/C/distribute | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MasterPassword/C/distribute b/MasterPassword/C/distribute index 279b5b27..34c058b8 100755 --- a/MasterPassword/C/distribute +++ b/MasterPassword/C/distribute @@ -4,14 +4,14 @@ set -e cd "${BASH_SOURCE%/*}" tag=$(git describe) commit=$(git describe --long --dirty) -[[ $tag && $commit = $tag-* ]] || exit 1 +[[ $tag && $commit = $tag* ]] || exit 1 git show --show-signature --pretty=format:%H --quiet "$tag" > VERSION mpwArchive=mpw-$commit.tar.gz [[ -e $mpwArchive ]] && echo "WARNING: $mpwArchive already exists. Will overwrite." read -n1 -p "Will prepare and release $mpwArchive. Press a key to continue or ^C to abort." -git ls-files -z . | xargs -0 tar -cvzf "$mpwArchive" +git ls-files -z . | xargs -0 tar -Lcvzf "$mpwArchive" echo "$mpwArchive ready, SHA256: $(openssl sha -sha256 < "$mpwArchive")" cd ../../Site/current