HT:??Dig -- bugfix

Martin Wheeler (
Thu, 18 Dec 1997 00:29:40 +0000 (GMT)

HT://Dig bugfix -- [send to :]


     Debian GNU/Linux 1.3.1
     libc5 5.4.33

Whilst running make install on the Makefile just produced, the following error occurs on trying to create the images directory:

Installing default configuration files...
/var/www/htdig/common/synonyms [OK so far. Now ...]
Installing images...
/bin/sh: -c: line 1: syntax error near unexpected token `;'
/bin/sh: -c: line 1: `for i in button1.gif button2.gif button3.gif button4.gif button5.gif button6.gif button7.gif button8.gif button9.gif buttonl.gif buttonr.gif button10.gif htdig.gif star.gif star_blank.gif; do if [ ! -f /var/www/htdocs/htdig/$i ]; then /root/htdig/htdig-3.0.8b1/install-sh -c -m 0664 installdir/$i /var/www/htdocs/htdig/$i; echo /var/www/htdocs/htdig/$i;fi done;'
make: *** [install] Error 2

The code objected to in the Makefile (carried over from appears to be:

        @if [ ! -f $(COMMON_DIR)/synonyms ]; then $(INSTALL) installdir/synonyms $(COMMON_DIR); echo $(COMMON_DIR)/synonyms;fi
        @echo "Installing images..."
        @for i in $(IMAGES); \
        do \
                if [ ! -f $(IMAGE_DIR)/$$i ]; then $(INSTALL) -m 0664 installdir/$$i $(IMAGE_DIR)/$$i; echo $(IMAGE_DIR)/$$i;fi \
        done; ^

Stuffing in a semi-colon after the if;then;echo;fi loop inside the do\done construct sorts it.
(Remember to amend also.)

And BTW - thanks for making the software available.


Martin Wheeler   -    StarTEXT, Glastonbury, Somerset, England - BA6 9PH             

This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:25:25 PST