create pot has moved; adjust buildpackages
[citadel.git] / webcit / buildpackages
index 95462fff5976e69a4b51c194374d24febd38acaa..49dda253710f0c8391c53f96e4533b30f7742451 100755 (executable)
@@ -26,8 +26,7 @@ else
        fi
        if test "$done" = "false"; then 
                cd ..
-               mv -- $SYMLINK "webcit-$WEBCIT_VERSION"
-               ln -sf "webcit-$WEBCIT_VERSION" webcit
+               ln -sf webcit "webcit-$WEBCIT_VERSION"
                cd "webcit-$WEBCIT_VERSION"
        else
                cd "../webcit-$WEBCIT_VERSION"
@@ -48,9 +47,9 @@ case $1 in
            mkdir tmp
            cp -rL webcit-$WEBCIT_VERSION tmp
            cd tmp/webcit-$WEBCIT_VERSION
-           rm -rf `find -name .svn ` svn*tmp* build-stamp configure-stamp *~ config.guess  config.log config.status autom4te.cache
+           rm -rf `find -name .svn ` svn*tmp* build-stamp configure-stamp *~ config.guess  config.log config.status autom4te.cache Makefile 
            find -type f -exec chmod a-x {} \;
-           chmod a+x configure debian/rules po/create-pot.sh
+           chmod a+x configure debian/rules po/create-pot.sh mk_module_init.sh
            cd ..
            tar -chzf webcit_${WEBCIT_VERSION}.orig.tar.gz webcit-${WEBCIT_VERSION}/ --exclude "debian/*"
            pwd
@@ -60,9 +59,27 @@ case $1 in
        fi
        ;;
     sourcedist)
-       cd ..; tar --exclude .svn --exclude "debian/*" -cvhzf webcit-${WEBCIT_VERSION}.tar.gz webcit-${WEBCIT_VERSION}/
+       if test "$2" == "dfsg"; then
+           NONDFSG=-"-exclude static/webcit_icons/openid-small.gif"
+       fi
+       cd ..; tar \
+           --exclude ".gitignore" \
+           --exclude "*.lo" \
+           --exclude "*.o" \
+           --exclude "*.d" \
+           --exclude "autom4te.cache/*" \
+           --exclude "debian/*" \
+           --exclude "sysdep.h" \
+           \
+           $NONDFSG \
+           \
+           -cvhzf webcit-${WEBCIT_VERSION}.tar.gz webcit-${WEBCIT_VERSION}/
+       ;;
+    i18n)
+       ./webcit -G `pwd`/i18n_templatelist.c
+       cd po/webcit;  ./create-pot.sh
        ;;
     *)
-       echo "Not yet implemented. we have: debian "
+       echo "Not yet implemented. we have: debian, sourcedist, i18n (needs ready compiled & installed webcit in your system)"
        ;;
 esac