summaryrefslogtreecommitdiff
path: root/tools/create-distribution
blob: bd21c9c4e0c320de420a0a47d1127ada6f4f8434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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
version=`grep 'VERSION =' pingd | sed -e "s/.* '//" -e "s/'.*//"`
dirname=`basename \`pwd\``
pod2man --section=1 --release="$version" --center=Echolot pingd doc/pingd.1
pod2man --section=5 --release="$version" --center=Echolot doc/pingd.conf.pod doc/pingd.conf.5

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