Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 14 lines (11 sloc) 0.259 kB
#!/bin/bash
pushd $1
if [ -e .hg ]; then
hg archive -t tgz --prefix $2-$4/ $5/$2_$4.orig.tar.gz
elif [ -e .git ]; then
git archive --format tar --prefix=$2-$4/ HEAD | gzip - > $5/$2_$4.orig.tar.gz
else
echo "No git/mercurial repo here!"
popd
exit 1
fi
Jump to Line
Something went wrong with that request. Please try again.