2 # find out the package version from conf
5 export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;CITADEL;"`
7 PACKAGE_VERSION=`cat packageversion`
8 DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
11 if echo "$ACTUAL_DIR" |grep -q "$CITADEL_VERSION"; then
12 echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done."
15 if test -L "$ACTUAL_DIR"; then
17 SYMLINK=`ls -l $SYMLINK_|sed "s;.*-> ;;"`
18 if ls -l $SYMLINK_|grep -q "$CITADEL_VERSION"; then
22 SYMLINK=`pwd|sed "s;.*/;;"`
24 if test "$done" = "false"; then
26 mv -- $SYMLINK "citadel-$CITADEL_VERSION"
27 ln -sf "citadel-$CITADEL_VERSION" citadel
28 cd "citadel-$CITADEL_VERSION"
30 cd "../citadel-$CITADEL_VERSION"
39 #dpkg-source: warning: source directory `./citadel' is not <sourcepackage>-<upstreamversion> `citadel-6.61'
41 if grep -q "($CITADEL_VERSION" debian/changelog; then
42 echo rebuilding package.
44 echo "citadel (${CITADEL_VERSION}-${PACKAGE_VERSION}) unstable; urgency=low
46 * update to actual Citadel SVN. many new features. see Packages changelog.
48 -- Wilfried Goesgens <citadel@outgesourced.org> $DATE
50 " >/tmp/citadel_changelog
51 cat debian/changelog >>/tmp/citadel_changelog
52 mv /tmp/citadel_changelog debian/changelog
55 if test "$2" == "src"; then
56 cd ..; dpkg-source -b "citadel-$CITADEL_VERSION"
58 fakeroot dpkg-buildpackage
62 echo "Not yet implemented. we have: debian "