From: Adam Dickmeiss Date: Wed, 21 Apr 2010 12:51:08 +0000 (+0200) Subject: Add script to build and upload tar + documentation X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=2a8dce09318786ce259055a1abf4df0765a68153;p=git-tools-moved-to-github.git Add script to build and upload tar + documentation --- diff --git a/id-deb-build/id-upload.sh b/id-deb-build/id-upload.sh new file mode 100755 index 0000000..3a72de7 --- /dev/null +++ b/id-deb-build/id-upload.sh @@ -0,0 +1,33 @@ +#!/bin/sh +DEBCHANGELOG=debian/changelog +if test ! -f $DEBCHANGELOG; then + echo "$DEBCHANGELOG missing" + echo "The current directory should be base source of package" + exit 1 +fi +l=`head -1 $DEBCHANGELOG` +PROD=`echo $l|sed 's/ .*//g'` +VERSION=`echo $l|sed 's/.*(//g'|sed 's/).*//g'` +echo "VERSION=$VERSION" +MAJOR=`echo $VERSION|sed 's/-.*//g'` +echo "MAJOR=$MAJOR" +MINOR=`echo $VERSION|sed 's/.*-//g'` +echo "MINOR=$MINOR" +TAR=${PROD}-${MAJOR}.tar.gz +if test ! -f ${TAR}; then + echo "$0: ${TAR} missing" + exit 1 +fi +set -e +if test -f Doxyfile; then + doxygen >out 2>stderr +fi +(cd doc && make ${PRODUCT}.pdf index.html) +cp NEWS doc/ +cp ${TAR} ftp.indexdata.dk:/home/ftp/pub/${PROD}/ +tar cz --exclude=.git -f - dox doc|ssh website "cd software/${PROD}; tar xzf -" +# Local Variables: +# mode:shell-script +# sh-indentation: 2 +# sh-basic-offset: 8 +# End: