2 if test ! -f IDMETA; then
3 echo "IDMETA is not in current directory"
7 if test -n "$NAME"; then
10 DEBCONTROL=debian/control
11 if test ! -f $DEBCONTROL; then
12 echo "$DEBCONTROL missing"
13 echo "The current directory should be base source of package"
16 PRODUCT=`awk '/Source:/ {print $2}' $DEBCONTROL`
18 TAR=${PRODUCT}-${VERSION}.tar.gz
20 if test ! -f ${TAR}; then
21 echo "$0: ${TAR} missing"
25 if test -f Doxyfile; then
28 (cd doc && make ${PRODUCT}.pdf index.html)
30 scp ${TAR} ftp.indexdata.dk:/home/ftp/pub/${PRODUCT}/
31 tar cz --exclude=.git -f - dox doc|ssh website "cd /var/www/software/${PRODUCT}; tar x --overwrite -z -f -"