* added package build script.
authorWilfried Göesgens <willi@citadel.org>
Mon, 21 Nov 2005 16:23:42 +0000 (16:23 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 21 Nov 2005 16:23:42 +0000 (16:23 +0000)
webcit/ChangeLog
webcit/buildpackages [new file with mode: 0755]

index 8c185bbf53c21e0cc050735c2476a8343a04d0f1..e472ca5f9c2f6e5662eca9b21dff7c767c5e2a19 100644 (file)
@@ -1,5 +1,15 @@
 $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 webcit system
+* added first try of a package that will install webcit via mod_proxy into
+  the debian apache system
+* modified package build and postinst script do include subdirectories new
+  since tiny_mce was added.
+       
+
 Sun Nov 20 22:22:37 EST 2005 ajc
 * Moved the definition of INADDR_NONE to webcit.h, where it will be effective
   in all locations where it is needed.  Fixes the build on Solaris 10.
diff --git a/webcit/buildpackages b/webcit/buildpackages
new file mode 100755 (executable)
index 0000000..a2a7a60
--- /dev/null
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+WEBCIT_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 "$WEBCIT_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 "$WEBCIT_VERSION"; then
+                       done=true
+               fi
+       else
+               SYMLINK=`pwd|sed "s;.*/;;"`
+       fi
+       if test "$done" = "false"; then 
+               cd ..
+               mv -- $SYMLINK "webcit-$WEBCIT_VERSION"
+               ln -s "webcit-$WEBCIT_VERSION" webcit
+               cd "webcit-$WEBCIT_VERSION"
+       else
+               cd "../webcit-$WEBCIT_VERSION"
+       fi
+       
+fi
+./bootstrap
+case $1 in
+       debian)
+               cat debian/files_preview | sed \
+                       -e "s;@WEBCIT_VERSION@;${WEBCIT_VERSION};" \
+                       -e "s;@PACKAGE_VERSION@;${PACKAGE_VERSION};" \
+                       > debian/files
+               if grep -q "$WEBCIT_VERSION" debian/changelog; then
+                       echo rebuilding package.
+               else
+                       echo "webcit (${WEBCIT_VERSION}-${PACKAGE_VERSION}) unstable; urgency=low
+       
+  * update to actual Webcit SVN. many new features. see Packages changelog.
+
+ -- Wilfried Goesgens <w.goesgens@chaosindustries.de>  $DATE
+       " >/tmp/webcit_changelog
+                       cat debian/changelog >>/tmp/webcit_changelog
+                       mv /tmp/webcit_changelog debian/changelog
+                       
+               fi
+               fakeroot dpkg-buildpackage
+       ;;
+       *)
+               echo "Not yet implemented. we have: debian "
+               ;;
+esac
\ No newline at end of file