silenced a silly little compiler warning
[citadel.git] / libcitadel / buildpackages
index 7b16b6fde2d5e4e93c1fcefafbd219479da8817a..b7b8ab01d176feb6b44e408e50753f90aabd2a78 100755 (executable)
@@ -6,7 +6,7 @@ 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.;;"`
 
 DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
 ACTUAL_DIR=`pwd`
@@ -100,18 +100,23 @@ EMAIL=citadel@outgesourced.org
 
        ;;
     sourcedist)
-       cd ..; tar --exclude .svn \
+       cd ..; tar \
            --exclude ".gitignore" \
-           --exclude .libs \
            --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, sourcedist "
                ;;