#!/bin/bash
# find out the package version from conf
-if test -x Makefile; then
- make clean
+if test -f Makefile; then
+ make distclean
fi
./bootstrap
cp -a citadel-$CITADEL_VERSION tmp
cd tmp/citadel-$CITADEL_VERSION
rm -rf `find -name .svn ` svn*tmp config.log config.status
+ find -type f -exec chmod a-x {} \;
+ chmod a+x configure
cd ..
tar -czf citadel_${CITADEL_VERSION}.orig.tar.gz citadel-${CITADEL_VERSION}/ --exclude "debian/*"
pwd
;;
sourcedist)
- cd ..; tar --exclude .svn --exclude "debian/*" -cvzf citadel-$CITADEL_VERSION.tgz citadel-$CITADEL_VERSION/
+ cd ..; tar --exclude .svn --exclude "debian/*" -cvzf citadel-$CITADEL_VERSION.tar.gz citadel-$CITADEL_VERSION/
;;
*)
echo "Not yet implemented. we have: debian "