summaryrefslogtreecommitdiff
path: root/tools/create-distribution
blob: 35f58a4248119454f95a2caa8f276a97ffdb91dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# This script is used after exporting the CVS to build a new
# release tarball

set -e

find -name .cvsignore -print0 | xargs -0 rm
pod2man pingd > pingd.1
version=`grep 'VERSION =' pingd | sed -e "s/.* '//" -e "s/'.*//"`
dirname=`basename \`pwd\``

if [ "$dirname" != "echolot-$version" ] ; then
	echo "WARN: Version $version might be wrong"
	echo "Enter to continue"
	read
fi

cd ..
tar czf $dirname.tar.gz $dirname
gpg --detach-sign $dirname.tar.gz