*BSD News Article 88245


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!EU.net!Ireland.EU.net!maths.tcd.ie!not-for-mail
From: percy@maths.tcd.ie (Julian Price)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: makefiles
Date: 3 Feb 1997 17:20:27 -0000
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Lines: 23
Sender: mathnews@synge.maths.tcd.ie
Message-ID: <5d56or$i34@synge.maths.tcd.ie>
NNTP-Posting-Host: synge.maths.tcd.ie
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34992

I have a makefile that compiles a number of java classes and documentation
and I have to replace all the javadoc URLs for the images (which are "images/")
to a correct URL. I am attempting to do this using the .for predicate.
I want to get a list of all html files and change the images URL in them (using
sed). I tried to use ls to list all the html files but it just returns that
../docs/packages.tmp/*.html is not a file:

The for loop is as follows:

.for filename in ls ../docs/packages.tmp/*.html
        $(SED) $(SEDFLAGS) < $(filename) > $(JAVADOCDIR)/$(notdir $(filename))
.endfor


the output is then:

sed 's/images/http:\/\/www.cs.tcd.ie\/www\/package_doc\/jdk1.1-beta3-docs\/api\/images/g' < ../docs/packages.tmp/*.html > ../docs/packages/
cannot open ../docs/packages.tmp/*.html: no such file
*** Error code 2

Is there any way I can get this to work properly?

Julian