aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/maketar
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/maketar')
-rwxr-xr-xscripts/maketar6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/maketar b/scripts/maketar
new file mode 100755
index 0000000..a85fc58
--- /dev/null
+++ b/scripts/maketar
@@ -0,0 +1,6 @@
+#!/bin/bash
+if [ -x "$(which pigz)" ]; then
+ exec tar cf - "${1%%/}/" | pigz > "${1%%/}.tgz"
+else
+ exec tar czf "${1%%/}.tgz" "${1%%/}/"
+fi