2 # find out the package version from conf
3 if test -x Makefile; then
9 export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;CITADEL;"`
11 PACKAGE_VERSION=`cat packageversion`
12 DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
15 if echo "$ACTUAL_DIR" |grep -q "$CITADEL_VERSION"; then
16 echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done."
19 if test -L "$ACTUAL_DIR"; then
21 SYMLINK=`ls -l $SYMLINK_|sed "s;.*-> ;;"`
22 if ls -l $SYMLINK_|grep -q "$CITADEL_VERSION"; then
26 SYMLINK=`pwd|sed "s;.*/;;"`
28 if test "$done" = "false"; then
30 mv -- $SYMLINK "citadel-$CITADEL_VERSION"
31 ln -sf "citadel-$CITADEL_VERSION" citadel
32 cd "citadel-$CITADEL_VERSION"
34 cd "../citadel-$CITADEL_VERSION"
43 #dpkg-source: warning: source directory `./citadel' is not <sourcepackage>-<upstreamversion> `citadel-6.61'
45 if grep -q "($CITADEL_VERSION" debian/changelog; then
46 echo rebuilding package.
48 echo "citadel (${CITADEL_VERSION}-${PACKAGE_VERSION}) unstable; urgency=low
50 * update to actual Citadel SVN. many new features. see Packages changelog.
52 -- Wilfried Goesgens <citadel@outgesourced.org> $DATE
54 " >/tmp/citadel_changelog
55 cat debian/changelog >>/tmp/citadel_changelog
56 mv /tmp/citadel_changelog debian/changelog
59 if test "$2" == "src"; then
60 cd ..; dpkg-source -b "citadel-$CITADEL_VERSION"
62 fakeroot dpkg-buildpackage
66 cd ..; tar --exclude .svn -cvzf citadel-$CITADEL_VERSION.tgz citadel-$CITADEL_VERSION/
69 echo "Not yet implemented. we have: debian "