X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fbuildpackages;h=83d535fa5c6bf39be44660eeea0c0cd4ded03cb1;hb=d218244e2b4ac89f4433ab262d80c77ca8141b0c;hp=f1eb9fd4b7c8476f587276989282a55972855045;hpb=2ccab0dc11c26919ce8a315a5004e44cad0a0476;p=citadel.git diff --git a/webcit/buildpackages b/webcit/buildpackages index f1eb9fd4b..83d535fa5 100755 --- a/webcit/buildpackages +++ b/webcit/buildpackages @@ -1,10 +1,16 @@ #!/bin/bash -export WEBCIT_`grep VERSION= configure.in |sed -e "s;';;g"` +if test -x Makefile; then + make clean +fi +./bootstrap +export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;WEBCIT;"` PACKAGE_VERSION=`cat packageversion` DATE=`date '+%a, %d %b %Y %H:%I:00 %z'` ACTUAL_DIR=`pwd` + +rm -rf debian/citadel-webcit debian/tmp/ if echo "$ACTUAL_DIR" |grep -q "$WEBCIT_VERSION"; then echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done." else @@ -20,41 +26,49 @@ else fi if test "$done" = "false"; then cd .. - mv -- $SYMLINK "webcit-$WEBCIT_VERSION" - ln -s "webcit-$WEBCIT_VERSION" webcit + ln -sf webcit "webcit-$WEBCIT_VERSION" 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 - if test "$2" == "src"; then - cd ..; dpkg-source -b "webcit-$WEBCIT_VERSION" - else - fakeroot dpkg-buildpackage - fi +case $1 in + debian) + if grep -q "($WEBCIT_VERSION" debian/changelog; then + echo rebuilding package. + else + echo "Upstream Version higher than local." + fi + if test "$2" == "src"; then + cd .. + rm -rf tmp + mkdir tmp + cp -rL webcit-$WEBCIT_VERSION tmp + cd tmp/webcit-$WEBCIT_VERSION + rm -rf `find -name .svn ` svn*tmp* build-stamp configure-stamp *~ config.guess config.log config.status autom4te.cache Makefile + find -type f -exec chmod a-x {} \; + chmod a+x configure debian/rules po/create-pot.sh mk_module_init.sh + cd .. + tar -chzf webcit_${WEBCIT_VERSION}.orig.tar.gz webcit-${WEBCIT_VERSION}/ --exclude "debian/*" + pwd + cd webcit-${WEBCIT_VERSION}; debuild -S -sa -kw.goesgens@outgesourced.org + else + fakeroot dpkg-buildpackage + fi + ;; + sourcedist) + if test "$2" == "dfsg"; then + NONDFSG=-"-exclude static/webcit_icons/openid-small.gif" + fi + cd ..; tar --exclude .gitignore --exclude "debian/*" $NONDFSG -cvhzf webcit-${WEBCIT_VERSION}.tar.gz webcit-${WEBCIT_VERSION}/ + ;; + i18n) + ./webcit -G `pwd`/i18n_templatelist.c + cd po; ./create-pot.sh + ;; + *) + echo "Not yet implemented. we have: debian, sourcedist, i18n (needs ready compiled & installed webcit in your system)" ;; - *) - echo "Not yet implemented. we have: debian " - ;; -esac \ No newline at end of file +esac