[htdig] Re: htDig install error

Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Tue, 9 Mar 1999 17:55:02 -0600 (CST)

According to John Emerson:
> Hi Gilles,
> I'm not sure who to ask. I found your name on a DejaNews.

Well, the best place to ask is usually the htdig@htdig.org mailing list.
See http://www.htdig.org/ for details.

It so happens, though, that this error is as a result of one of my changes
in early February. Oops!

> I am able to configure and make htDig 3.1.1, but when doing the 'make
> install' I get the following error:
> <snip>
> make[1]: Leaving directory `/home/aiusa/htdig-3.1.1/htsearch'
> make[1]: Entering directory `/home/aiusa/htdig-3.1.1/htmerge'
> transform=s,x,x,
> /usr/bin/ginstall -c htmerge /home/aiusa/htdig/bin/`echo htmerge | sed ''`
> make[1]: Leaving directory `/home/aiusa/htdig-3.1.1/htmerge'
> make[1]: Entering directory `/home/aiusa/htdig-3.1.1/htnotify'
> transform=s,x,x,
> /usr/bin/ginstall -c htnotify /home/aiusa/htdig/bin/`echo htnotify | sed
> ''`
> make[1]: Leaving directory `/home/aiusa/htdig-3.1.1/htnotify'
> Installing default configuration files...
> /bin/sh: -c: line 1: syntax error near unexpected token `done'
> /bin/sh: -c: line 1: `for i in header.html footer.html wrapper.html
> nomatch.html
> syntax.html; do if [ ! -f /home/aiusa/htdig/common/$i ]; then sed -e
> IR@%/search% ./installdir/$i >/home/aiusa/htdig/common/$i; echo
> /home/aiusa/htdi
> g/common/$i;fi done && test -z "$fail"'
> make: *** [install] Error 2
> I think it's probably just a misplaced semicolon somewhere. Any thoughts?
> - John Emerson
> - Web Coordinator
> - Amnesty International USA
> - www.amnestyusa.org

Yes, there is indeed a semicolon missing in two places in the Makefile
(and Makefile.in). In the for loops that deal with the $(COMMONHTML)
and $(COMMONDICT) lists, there should be a semicolon added right after
the "fi", before the backslash and the "done". It seems that this isn't
a problem with GNU make, but other make programs may strip out the
newlines, which is why the shell needs the semicolon.

Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930
To unsubscribe from the htdig mailing list, send a message to
htdig@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.

This archive was generated by hypermail 2.0b3 on Mon Mar 15 1999 - 08:57:45 PST