DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
ACTUAL_DIR=`pwd`
+
+rm -rf debian/citadel-client debian/citadel-common debian/citadel-doc debian/citadel-mta debian/citadel-server debian/citadel-suite debian/tmp
if echo "$ACTUAL_DIR" |grep -q "$CITADEL_VERSION"; then
echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done."
else
cd ..
rm -rf tmp
mkdir tmp
- cp -a citadel-$CITADEL_VERSION tmp
+ cp -rL 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 *.sh *.sh.in debian/rules debian/*inst* debian/rules mkinstalldirs
cd ..
- tar -czf citadel_${CITADEL_VERSION}.orig.tar.gz citadel-${CITADEL_VERSION}/ --exclude "debian/*"
+ tar -chzf citadel_${CITADEL_VERSION}.orig.tar.gz citadel-${CITADEL_VERSION}/ --exclude "debian/*"
pwd
cd citadel-${CITADEL_VERSION}; debuild -S -sa -kw.goesgens@outgesourced.org
else
;;
sourcedist)
- cd ..; tar --exclude .svn --exclude "debian/*" -cvzf citadel-$CITADEL_VERSION.tar.gz citadel-$CITADEL_VERSION/
+ cd ..; tar --exclude .svn --exclude "debian/*" -chvzf citadel-$CITADEL_VERSION.tar.gz citadel-$CITADEL_VERSION/
;;
*)
echo "Not yet implemented. we have: debian "