2004-01-15 03:44:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Intended to be run from the root of the isync source tree in the repository.
|
|
|
|
#
|
2004-01-16 06:26:08 +00:00
|
|
|
VERSION=`dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-[^-]\+$/\1/p'`
|
2004-02-06 01:11:38 +00:00
|
|
|
OLDVERSION=$VERSION
|
2004-01-15 03:44:51 +00:00
|
|
|
|
2004-02-06 01:11:38 +00:00
|
|
|
if echo $VERSION | grep +cvsXXXXXXXX; then
|
|
|
|
DATE=`date +%Y%m%d`
|
|
|
|
VERSION=`echo $VERSION | sed -e s/+cvsXXXXXXXX/+cvs${DATE}/`
|
|
|
|
else
|
|
|
|
if [ ! -f ../isync_$VERSION.orig.tar.gz ]; then
|
|
|
|
echo isync_$VERSION.orig.tar.gz must be found in the parent directory.
|
|
|
|
exit 1
|
|
|
|
fi
|
2004-01-15 03:44:51 +00:00
|
|
|
fi
|
|
|
|
rm -rf ../isync-$VERSION
|
|
|
|
|
|
|
|
fakeroot ./debian/rules clean
|
|
|
|
cp -rl . ../isync-$VERSION
|
|
|
|
cd ../isync-$VERSION
|
2004-02-06 01:11:38 +00:00
|
|
|
if [ "$OLDVERSION" != "$VERSION" ]; then
|
|
|
|
sed -e s/+cvsXXXXXXXX/+cvs${DATE}/ < debian/changelog > debian/changelog.new
|
|
|
|
mv debian/changelog.new debian/changelog
|
|
|
|
fi
|
2004-01-16 06:26:08 +00:00
|
|
|
find . -name CVS -print0 | xargs -0r rm -rf
|
|
|
|
find . -name .cvsignore -print0 | xargs -0r rm
|
|
|
|
find . -type l -print0 | xargs -0r rm
|
|
|
|
find . -name .#\*# -print0 | xargs -0r rm
|
2004-01-15 03:44:51 +00:00
|
|
|
aclocal
|
|
|
|
autoheader
|
|
|
|
automake --add-missing --copy
|
|
|
|
autoconf
|
2004-01-16 06:26:08 +00:00
|
|
|
if [ -n "$DOSIGN" ]; then
|
|
|
|
SIGNOPTS=
|
|
|
|
else
|
|
|
|
SIGNOPTS="-us -uc"
|
|
|
|
fi
|
|
|
|
dpkg-buildpackage -rfakeroot $SIGNOPTS
|