From 5c45829941bb7094f50465e402c0c75e59fad36e Mon Sep 17 00:00:00 2001 From: Alex Harker Date: Tue, 18 Jan 2022 11:21:16 +0000 Subject: [PATCH] Add zip script --- scripts/dist-zip.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/dist-zip.sh diff --git a/scripts/dist-zip.sh b/scripts/dist-zip.sh new file mode 100755 index 0000000..3f964c8 --- /dev/null +++ b/scripts/dist-zip.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +BASEDIR=$(dirname $0) + +EXPORT_PATH="$BASEDIR/../build-mac/HISSTools_Granular" +ZIP_PATH="$EXPORT_PATH.zip" + +find "$EXPORT_PATH" -name '.DS_Store' -type f -delete || exit 1 +find "$EXPORT_PATH" -name '._*' -type f -delete || exit 1 + +/usr/bin/ditto -c -k --norsrc --keepParent "$EXPORT_PATH" "$ZIP_PATH" || exit 1