simplify removal of unnecessary files

This commit is contained in:
Anton-4 2023-01-17 11:56:26 +01:00
parent e643bdd9d4
commit 520db5765f
No known key found for this signature in database
GPG Key ID: 0971D718C0A9B937

View File

@ -6,14 +6,7 @@ set -euxo pipefail
cp target/release/roc ./roc # to be able to delete "target" later
# delete unnecessary files and folders
find . -name "target" -depth -type d -exec rm -rf {} \;
find . -name "zig-cache" -depth -type d -exec rm -rf {} \;
find . -name "*.o" -exec rm -rf {} \;
find . -name "*.rh1" -exec rm -rf {} \;
find . -name "*.rm1" -exec rm -rf {} \;
fd --type executable . './examples' -X rm
git clean -fdx --exclude roc
mkdir $1
tar -czvf "$1.tar.gz" roc LICENSE LEGAL_DETAILS examples/helloWorld.roc examples/platform-switching examples/cli crates/roc_std crates/compiler/builtins/bitcode/src