Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 12 lines (11 sloc) 0.259 kb
1 2 3 4 5 6 7 8 9 10 11 12
#!/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
Something went wrong with that request. Please try again.