From 02b33fd8faf484bf3018c84fdb1357a4b8a3fab9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Mon, 21 Nov 2005 16:23:42 +0000 Subject: [PATCH] * added package build script. --- webcit/ChangeLog | 10 ++++++++ webcit/buildpackages | 56 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100755 webcit/buildpackages diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 8c185bbf5..e472ca5f9 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -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 index 000000000..a2a7a60d7 --- /dev/null +++ b/webcit/buildpackages @@ -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 $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 -- 2.30.2