On Sat, May 10, 2003 at 02:48:11PM +0200, Josip Rodin wrote:
> On Sat, May 10, 2003 at 11:04:26AM +0200, Frank Lichtenheld wrote:
> > searchtml/Makefile is broken. It overwrites the source file search.wml
> > The following patch should fix this:
> > 
> >         c=`grep CHARSET ../.wmlrc | cut -d= -f2`; \
> > -          iconv -f $$c -t UTF-8 $< | perl -pe 's,^(\s*<meta 
> > http-equiv="Content-Type" content="text/html; 
> > charset=)\S+(">)$$,$$1UTF-8$$2,' > $<
> > +       iconv -f $$c -t UTF-8 $@ | perl -pe 's,^(\s*<meta 
> > http-equiv="Content-Type" content="text/html; 
> > charset=)\S+(">)$$,$$1UTF-8$$2,' > [EMAIL PROTECTED]
> > +       mv [EMAIL PROTECTED] $@
> 
> Silly person, just s/$</$@/g in the iconv | perl line :)

Hmm, don't forget the tmpfile moves. With just s/$</$@/ it will no
longer overwrite search.wml, but search.$(LANG).html will be empty.
But you probably knew that.

Anyway, I will commit the change, but as I said, one has to make sure
it get repaired in the working directory on www.d.o
Whoever will do this should then close the bug.

-- 
*** Frank Lichtenheld <[EMAIL PROTECTED]> ***
          *** http://www.djpig.de/ ***
see also: - http://www.usta.de/
          - http://fachschaft.physik.uni-karlsruhe.de/

Reply via email to