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'`
12 if echo "$ACTUAL_DIR" |grep -q "$WEBCIT_VERSION"; then
13 echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done."
16 if test -L "$ACTUAL_DIR"; then
18 SYMLINK=`ls -l $SYMLINK_|sed "s;.*-> ;;"`
19 if ls -l $SYMLINK_|grep -q "$WEBCIT_VERSION"; then
23 SYMLINK=`pwd|sed "s;.*/;;"`
25 if test "$done" = "false"; then
27 mv -- $SYMLINK "webcit-$WEBCIT_VERSION"
28 ln -sf "webcit-$WEBCIT_VERSION" webcit
29 cd "webcit-$WEBCIT_VERSION"
31 cd "../webcit-$WEBCIT_VERSION"
38 if grep -q "($WEBCIT_VERSION" debian/changelog; then
39 echo rebuilding package.
41 echo "Upstream Version higher than local."
43 if test "$2" == "src"; then
47 cp -a webcit-$WEBCIT_VERSION tmp
48 cd tmp/webcit-$WEBCIT_VERSION
49 rm -rf `find -name .svn ` svn*tmp* build-stamp configure-stamp *~ config.guess config.log config.status autom4te.cache
51 tar -czf webcit_${WEBCIT_VERSION}.orig.tar.gz webcit-${WEBCIT_VERSION}/ --exclude "debian/*"
53 cd webcit-${WEBCIT_VERSION}; debuild -S -sa -kw.goesgens@outgesourced.org
55 fakeroot dpkg-buildpackage
59 cd ..; tar --exclude .svn --exclude "debian/*" -cvzf webcit-${WEBCIT_VERSION}.tar.gz webcit-${WEBCIT_VERSION}/
62 echo "Not yet implemented. we have: debian "