summaryrefslogtreecommitdiff
path: root/makezip.sh
blob: e8b4f923244aaf531b84e374ff4b609365580da2 (plain)
1
2
3
4
5
6
7
#!/bin/bash

tmpfile=$(mktemp -u)
in=$1
out=$2
pushd $(dirname $in) && zip -r $tmpfile $(basename $in) && popd && cp $tmpfile $out && rm $tmpfile