* add some script to wrap the debian package build that does some magic about
authorWilfried Göesgens <willi@citadel.org>
Mon, 21 Nov 2005 16:31:10 +0000 (16:31 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 21 Nov 2005 16:31:10 +0000 (16:31 +0000)
  the versioning in the package and the citadel system

citadel/ChangeLog
citadel/buildpackages [new file with mode: 0755]

index fa1da972b0f4a0e14310267c3c1e501308e6cbb6..4db25d28024938e049a6b88ff42baaccd0bc9b4f 100644 (file)
@@ -1,5 +1,11 @@
 $Id$
 
+Mon Nov 21 16:59:43 CET 2005 dothebart
+* add some script to wrap the debian package build that does some magic about
+  the versioning in the package and the citadel system
+* Many fixups to the debian packages
+* added Unixlogin Package
+       
 Tue Nov 15 21:18:01 EST 2005 ajc
 * THIS IS 6.62
 
diff --git a/citadel/buildpackages b/citadel/buildpackages
new file mode 100755 (executable)
index 0000000..78c64ad
--- /dev/null
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+CITADEL_VERSION=`grep "THIS IS" ChangeLog  |head -n 1|sed "s;.* ;;"`
+PACKAGE_VERSION=`cat packageversion`
+DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
+ACTUAL_DIR=`pwd`
+
+if echo "$ACTUAL_DIR" |grep -q "$CITADEL_VERSION"; then
+       echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done."
+else
+       done=false
+       if test -L "$ACTUAL_DIR"; then 
+               SYMLINK_=`pwd`
+               SYMLINK=`ls -l $SYMLINK_|sed "s;.*-> ;;"`
+               if ls -l $SYMLINK_|grep -q "$CITADEL_VERSION"; then
+                       done=true
+               fi
+       else
+               SYMLINK=`pwd|sed "s;.*/;;"`
+       fi
+       if test "$done" = "false"; then 
+               cd ..
+               mv -- $SYMLINK "citadel-$CITADEL_VERSION"
+               ln -s "citadel-$CITADEL_VERSION" citadel
+               cd "citadel-$CITADEL_VERSION"
+       else
+               cd "../citadel-$CITADEL_VERSION"
+       fi
+       
+fi
+./bootstrap
+
+
+case $1 in
+       debian)
+
+#dpkg-source: warning: source directory `./citadel' is not <sourcepackage>-<upstreamversion> `citadel-6.61'
+
+               cat debian/files_preview | sed \
+                       -e "s;@CITADEL_VERSION@;${CITADEL_VERSION};" \
+                       -e "s;@PACKAGE_VERSION@;${PACKAGE_VERSION};" \
+                       > debian/files
+               if grep -q "$CITADEL_VERSION" debian/changelog; then
+                       echo rebuilding package.
+               else
+                       echo "citadel (${CITADEL_VERSION}-${PACKAGE_VERSION}) unstable; urgency=low
+       
+  * update to actual Citadel CVS. many new features. see Packages changelog.
+
+ -- Wilfried Goesgens <w.goesgens@chaosindustries.de>  $DATE
+       
+" >/tmp/citadel_changelog
+                       cat debian/changelog >>/tmp/citadel_changelog
+                       mv /tmp/citadel_changelog debian/changelog
+
+               fi
+               fakeroot dpkg-buildpackage
+       ;;
+       *)
+               echo "Not yet implemented. we have: debian "
+               ;;
+esac
\ No newline at end of file