X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fbuildpackages;h=511ab792555b8ff0449e1df9e79305634f989aef;hb=1a4ec92c7186ed2c0b9b6bf45afc47b69f3a800a;hp=dc70c6d115d7f833da757ee934b205bcd60bad99;hpb=993596bbf0ceca07b3a9fb6df5eee5fa38457b0c;p=citadel.git diff --git a/webcit/buildpackages b/webcit/buildpackages index dc70c6d11..511ab7925 100755 --- a/webcit/buildpackages +++ b/webcit/buildpackages @@ -3,12 +3,14 @@ if test -x Makefile; then make clean fi ./bootstrap -export WEBCIT_`grep VERSION= configure.ac |sed -e "s;';;g"` +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 @@ -24,8 +26,7 @@ else fi if test "$done" = "false"; then cd .. - mv -- $SYMLINK "webcit-$WEBCIT_VERSION" - ln -sf "webcit-$WEBCIT_VERSION" webcit + ln -sf webcit "webcit-$WEBCIT_VERSION" cd "webcit-$WEBCIT_VERSION" else cd "../webcit-$WEBCIT_VERSION" @@ -44,11 +45,13 @@ case $1 in cd .. rm -rf tmp mkdir tmp - cp -a webcit-$WEBCIT_VERSION tmp + cp -rL webcit-$WEBCIT_VERSION tmp cd tmp/webcit-$WEBCIT_VERSION - rm -rf `find -name .svn ` svn*tmp* build-stamp configure-stamp *~ config.sub config.guess config.log config.status autom4te.cache + 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 -czf webcit_${WEBCIT_VERSION}.orig.tar.gz webcit-${WEBCIT_VERSION}/ --exclude "debian/*" + 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 @@ -56,9 +59,30 @@ case $1 in fi ;; sourcedist) - cd ..; tar -cvzf webcit-${WEBCIT_VERSION}.tgz webcit-${WEBCIT_VERSION}/ + if test "$2" == "dfsg"; then + NONDFSG=-"-exclude static/webcit_icons/openid-small.gif" + fi + cd ..; tar \ + --exclude ".gitignore" \ + --exclude "*.lo" \ + --exclude "*.o" \ + --exclude "*.d" \ + --exclude "autom4te.cache/*" \ + --exclude "debian/*" \ + --exclude "sysdep.h" \ + \ + $NONDFSG \ + \ + -cvhzf webcit-${WEBCIT_VERSION}.tar.gz webcit-${WEBCIT_VERSION}/ + ;; + i18n) + ./webcit -G `pwd`/i18n_templatelist.c + cd po/webcit; ./create-pot.sh + ;; + version) + echo This would build webcit-${WEBCIT_VERSION} ;; *) - echo "Not yet implemented. we have: debian " + echo "Not yet implemented. we have: debian, sourcedist, i18n (needs ready compiled & installed webcit in your system)" ;; -esac \ No newline at end of file +esac