The "c_smtpclient_use_starttls" configuration option has been replaced
[citadel.git] / libcitadel / buildpackages
index 0766d401c2e2aaa324cd7bdf1ee3460777fe08fc..b7b8ab01d176feb6b44e408e50753f90aabd2a78 100755 (executable)
@@ -6,9 +6,8 @@ fi
 
 ./bootstrap
 
-export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;LIBCITADEL;"`
+export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;LIBCITADEL;"  -e "s;4.;;"`
 
-PACKAGE_VERSION=`cat packageversion`
 DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
 ACTUAL_DIR=`pwd`
 
@@ -101,18 +100,24 @@ EMAIL=citadel@outgesourced.org
 
        ;;
     sourcedist)
-       cd ..; tar --exclude .svn \
-           --exclude "*svn*" \
-           --exclude .libs \
+       cd ..; tar \
+           --exclude ".gitignore" \
            --exclude "*.lo" \
            --exclude "*.o" \
            --exclude "*.d" \
+           --exclude "autom4te.cache/*" \
            --exclude "debian/*" \
            --exclude "sysdep.h" \
            \
+           --exclude .libs \
+           --exclude tests/testdata \
+           \
            -chvzf libcitadel-$LIBCITADEL_VERSION.tar.gz libcitadel-$LIBCITADEL_VERSION/
        ;;
+       version)
+               echo This would build libcitadel-$LIBCITADEL_VERSION
+               ;;
        *)
-               echo "Not yet implemented. we have: debian "
+               echo "Not yet implemented. we have: debian, sourcedist "
                ;;
 esac