2 if test -x Makefile; then
6 export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;WEBCIT;"`
8 PACKAGE_VERSION=`cat packageversion`
9 DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
13 rm -rf debian/citadel-webcit debian/tmp/
14 if echo "$ACTUAL_DIR" |grep -q "$WEBCIT_VERSION"; then
15 echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done."
18 if test -L "$ACTUAL_DIR"; then
20 SYMLINK=`ls -l $SYMLINK_|sed "s;.*-> ;;"`
21 if ls -l $SYMLINK_|grep -q "$WEBCIT_VERSION"; then
25 SYMLINK=`pwd|sed "s;.*/;;"`
27 if test "$done" = "false"; then
29 ln -sf webcit "webcit-$WEBCIT_VERSION"
30 cd "webcit-$WEBCIT_VERSION"
32 cd "../webcit-$WEBCIT_VERSION"
39 if grep -q "($WEBCIT_VERSION" debian/changelog; then
40 echo rebuilding package.
42 echo "Upstream Version higher than local."
44 if test "$2" == "src"; then
48 cp -rL webcit-$WEBCIT_VERSION tmp
49 cd tmp/webcit-$WEBCIT_VERSION
50 rm -rf `find -name .svn ` svn*tmp* build-stamp configure-stamp *~ config.guess config.log config.status autom4te.cache Makefile
51 find -type f -exec chmod a-x {} \;
52 chmod a+x configure debian/rules po/create-pot.sh mk_module_init.sh
54 tar -chzf webcit_${WEBCIT_VERSION}.orig.tar.gz webcit-${WEBCIT_VERSION}/ --exclude "debian/*"
56 cd webcit-${WEBCIT_VERSION}; debuild -S -sa -kw.goesgens@outgesourced.org
58 fakeroot dpkg-buildpackage
62 if test "$2" == "dfsg"; then
63 NONDFSG=-"-exclude static/webcit_icons/openid-small.gif"
66 --exclude ".gitignore" \
70 --exclude "autom4te.cache/*" \
71 --exclude "debian/*" \
72 --exclude "sysdep.h" \
76 -cvhzf webcit-${WEBCIT_VERSION}.tar.gz webcit-${WEBCIT_VERSION}/
79 ./webcit -G `pwd`/i18n_templatelist.c
80 cd po/webcit; ./create-pot.sh
83 echo This would build webcit-${WEBCIT_VERSION}
86 echo "Not yet implemented. we have: debian, sourcedist, i18n (needs ready compiled & installed webcit in your system)"