#!/bin/sh if [ $# -lt 2 ]; then if [ $# -lt 1 ]; then echo "Invalid parameters" exit 1 fi rev=HEAD else rev=$2 fi git archive --format=tar --prefix=sigen-$1/ $rev | bzip2 --best > ../sigen-$1.tar.bz2