2 DEBCHANGELOG=debian/changelog
3 if test ! -f $DEBCHANGELOG; then
4 echo "$DEBCHANGELOG missing"
5 echo "The current directory should be base source of package"
8 l=`head -1 $DEBCHANGELOG`
9 PROD=`echo $l|sed 's/ .*//g'`
10 VERSION=`echo $l|sed 's/.*(//g'|sed 's/).*//g'`
11 echo "VERSION=$VERSION"
12 MAJOR=`echo $VERSION|sed 's/-.*//g'`
14 MINOR=`echo $VERSION|sed 's/.*-//g'`
16 TAR=${PROD}-${MAJOR}.tar.gz
17 if test ! -f ${TAR}; then
18 echo "$0: ${TAR} missing"
22 if test -f Doxyfile; then
25 (cd doc && make ${PROD}.pdf index.html)
27 scp ${TAR} ftp.indexdata.dk:/home/ftp/pub/${PROD}/
28 tar cz --exclude=.git -f - dox doc|ssh website "cd /var/www/software/${PROD}; tar xzf -"