aboutsummaryrefslogtreecommitdiff
path: root/misc/bin/zipall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/bin/zipall.sh')
-rwxr-xr-xmisc/bin/zipall.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/bin/zipall.sh b/misc/bin/zipall.sh
new file mode 100755
index 0000000..0a244c2
--- /dev/null
+++ b/misc/bin/zipall.sh
@@ -0,0 +1,9 @@
+#/bin/bash
+
+# zip all non-7z and non-zip files with 7z in pwd and delete the original
+for f in ./*; do
+ ext=${f##*.}
+ if test "$ext" = zip; then continue; fi;
+ if test "$ext" = 7z; then continue; fi;
+ 7z a -sdel "$f.7z" "$f"
+done