summaryrefslogtreecommitdiff
path: root/makezip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makezip.sh')
-rwxr-xr-xmakezip.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/makezip.sh b/makezip.sh
new file mode 100755
index 0000000..e8b4f92
--- /dev/null
+++ b/makezip.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+tmpfile=$(mktemp -u)
+in=$1
+out=$2
+pushd $(dirname $in) && zip -r $tmpfile $(basename $in) && popd && cp $tmpfile $out && rm $tmpfile
+