The battle against bit rot continues!
[citadel.git] / citadel / buildpackages
index 8cb0f70d7d1262792ab315672c028c890d9b8d1a..412c303ca73c8e2f8c701d9cfbb62b57d06eedd9 100755 (executable)
@@ -29,8 +29,7 @@ else
        fi
        if test "$done" = "false"; then 
                cd ..
-               mv -- $SYMLINK "citadel-$CITADEL_VERSION"
-               ln -sf "citadel-$CITADEL_VERSION" citadel
+               ln -sf citadel "citadel-$CITADEL_VERSION"
                cd "citadel-$CITADEL_VERSION"
        else
                cd "../citadel-$CITADEL_VERSION"
@@ -80,9 +79,8 @@ EMAIL=citadel@outgesourced.org
        export LDFLAGS='-L/opt/csw/lib -L /usr/local/lib'
        export CFLAGS='-I/opt/csw/include -I/usr/local/include  -DDISABLE_CURSES'
        ./configure \
-           --with-db=/opt/csw/bdb44 \
+           --with-db=/opt/csw/bdb5 \
            --with-ical=/usr/local/ \
-           --without-curses \
            --with-prefix=/opt/csw/ \
            --with-datadir=/opt/csw/var/lib/citadel \
            --with-sysconfdir=/opt/csw/etc/citadel \
@@ -102,7 +100,19 @@ EMAIL=citadel@outgesourced.org
 
        ;;
     sourcedist)
-       cd ..; tar --exclude .svn --exclude "debian/*" -chvzf citadel-$CITADEL_VERSION.tar.gz citadel-$CITADEL_VERSION/
+       cd ..; tar \
+           --exclude ".gitignore" \
+           --exclude "*.lo" \
+           --exclude "*.o" \
+           --exclude "*.d" \
+           --exclude "autom4te.cache/*" \
+           --exclude "debian/*" \
+           --exclude "sysdep.h" \
+           \
+           -chvzf citadel-$CITADEL_VERSION.tar.gz citadel-$CITADEL_VERSION/
+       ;;
+    version)
+       echo This would build citadel-$CITADEL_VERSION
        ;;
        *)
                echo "Not yet implemented. we have: debian "