X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fbuildpackages;h=511ab792555b8ff0449e1df9e79305634f989aef;hb=HEAD;hp=5949612af2dbc8cd89499be236b3a5d5c9fc0bac;hpb=0a2bc0355ce88ef0f225ff5fe4665c8487f4d78d;p=citadel.git diff --git a/webcit/buildpackages b/webcit/buildpackages deleted file mode 100755 index 5949612af..000000000 --- a/webcit/buildpackages +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -if test -x Makefile; then - make clean -fi -./bootstrap -export WEBCIT_`grep VERSION= configure.ac |sed -e "s;';;g"` - -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 -sf "webcit-$WEBCIT_VERSION" webcit - cd "webcit-$WEBCIT_VERSION" - else - cd "../webcit-$WEBCIT_VERSION" - fi - -fi - -case $1 in - debian) - 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 - if test "$2" == "src"; then - cd ..; dpkg-source -b "webcit-$WEBCIT_VERSION" - else - fakeroot dpkg-buildpackage - fi - ;; - sourcedist) - cd ..; tar -cvzf webcit-$WEBCIT_VERSION.tgz webcit-$WEBCIT_VERSION/ - ;; - *) - echo "Not yet implemented. we have: debian " - ;; -esac \ No newline at end of file