summary refs log tree commit diff
path: root/bin/tgz
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2015-07-06 11:46:36 -0700
committerFranck Cuny <franck@lumberjaph.net>2015-07-06 11:46:36 -0700
commit3d10fafdfc888b43d91aebf45cb6022f4f3c3203 (patch)
tree61bd8c8475beaa5f86f2e78d1e4d3b7ea625eb84 /bin/tgz
parentcreate repository (diff)
downloademacs.d-3d10fafdfc888b43d91aebf45cb6022f4f3c3203.tar.gz
configuration files
Diffstat (limited to '')
-rwxr-xr-xbin/tgz12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/tgz b/bin/tgz
new file mode 100755
index 0000000..7b8d05e
--- /dev/null
+++ b/bin/tgz
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+name=$1
+
+shift
+
+if [[ -z "${name}" ]]; then
+  echo "usage: $0 [name] [files]"
+  exit 1
+fi
+
+tar czfv "${name}.tgz" "$@"