Skip to content

Commit 8a92fcf

Browse files
author
Joshua Taillon
committed
update zip script
1 parent 2bbf44c commit 8a92fcf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

make_release.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
22

3-
zip -r hyperspy_tutorial.zip . -x "*/.*" -x ".*" -x "make_release.sh" -x "./*.zip"
3+
# zip everything into one archive, ignoreing hidden files and directories, this
4+
# file, and any zip files in the root of the directory tree
5+
find . -not -path '*/\.*' -not -path './make_release.sh' -not -path './*.zip' \
6+
-type f | zip -9 hyperspy_tutorial.zip --names-stdin
47

5-
zip -r hyperspy_tutorial_no_big_data.zip . -x "*/.*" -x ".*" -x "make_release.sh" -x "./*.zip"
8+
# same as above, ignoring files larger than 100M:
9+
find . -not -path '*/\.*' -not -path './make_release.sh' -not -path './*.zip' \
10+
-type f -not -size +100M | zip hyperspy_tutorial_no_big_data.zip --names-stdin

0 commit comments

Comments
 (0)