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 mv -- $SYMLINK "webcit-$WEBCIT_VERSION"
30 ln -sf "webcit-$WEBCIT_VERSION" webcit
31 cd "webcit-$WEBCIT_VERSION"
33 cd "../webcit-$WEBCIT_VERSION"
40 if grep -q "($WEBCIT_VERSION" debian
/changelog
; then
41 echo rebuilding package.
43 echo "Upstream Version higher than local."
45 if test "$2" == "src"; then
49 cp -rL webcit-
$WEBCIT_VERSION tmp
50 cd tmp
/webcit-
$WEBCIT_VERSION
51 rm -rf `find -name .svn ` svn
*tmp
* build-stamp configure-stamp
*~ config.guess config.log config.status autom4te.cache
52 find -type f
-exec chmod a-x
{} \
;
53 chmod a
+x configure debian
/rules po
/create-pot.sh
55 tar -chzf webcit_
${WEBCIT_VERSION}.orig.
tar.gz webcit-
${WEBCIT_VERSION}/ --exclude "debian/*"
57 cd webcit-
${WEBCIT_VERSION}; debuild
-S -sa -kw.goesgens@outgesourced.org
59 fakeroot dpkg-buildpackage
63 if test "$2" == "dfsg"; then
64 NONDFSG
=-"-exclude static/openid-small.gif"
66 cd ..
; tar --exclude .svn
--exclude "debian/*" $NONDFSG -cvhzf webcit-
${WEBCIT_VERSION}.
tar.gz webcit-
${WEBCIT_VERSION}/
69 echo "Not yet implemented. we have: debian "