]> code.citadel.org Git - citadel.git/blobdiff - citadel/buildpackages
* disable dspam
[citadel.git] / citadel / buildpackages
index 2fadd62269a80e6c5cc357e84b381fa67577c1b8..4361b2ef50fcf0191db576080777c31cdcad1b62 100755 (executable)
@@ -1,7 +1,7 @@
 #!/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
@@ -52,6 +52,8 @@ case $1 in
            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
@@ -98,7 +100,7 @@ EMAIL=citadel@outgesourced.org
 
        ;;
     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 "