summaryrefslogtreecommitdiff
path: root/debian/make-new-tarball.sh
blob: 5af64b9723338fe4c8637925d0809613cad5f46e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if [ -z $1 ]; then
	echo "Please provide the directory to tar up as an argument"
	exit 1
fi

BASENAME=$(basename $1)
DIRNAME=$(dirname $1)

tar -czvf hurd.tgz \
    --exclude=.git --exclude=.gitignore --exclude=debian \
    -C $DIRNAME $BASENAME