Bug#192768: www.debian.org: searchtml/Makefile broken
Package: www.debian.org
Version: N/A; reported 2003-05-10
Severity: normal
Tags: patch
searchtml/Makefile is broken. It overwrites the source file search.wml
The following patch should fix this:
Index: Makefile
===================================================================
RCS file: /cvs/webwml/webwml/english/searchtmpl/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile 2 May 2003 14:05:14 -0000 1.7
+++ Makefile 10 May 2003 08:55:40 -0000
@@ -17,4 +17,5 @@
$(WML) $<
# XXX this likely doesn't work at all for SUBLANG-enabled languages!
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,' > $@.tmp
+ mv $@.tmp $@
Note that the empty search.wml files will not be updated by cvs update -Pd.
Someone has to delete them (and then run update) or to run cvs update -C once.
Frank
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux djpig 2.4.20 #1 Fri Mar 7 14:16:01 CET 2003 i686
Locale: LANG=de_DE, LC_CTYPE=de_DE
Reply to: