From 5c114e04ec485030aed5da455c2e594e94cbfdbf Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 29 Dec 2013 06:34:27 +0900 Subject: Convert document encodings to UTF-8 at build time --- debian/rules | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/debian/rules b/debian/rules index 8af3ad4..11c0289 100755 --- a/debian/rules +++ b/debian/rules @@ -97,6 +97,37 @@ binary-arch: install dh_installmime # dh_installman dh_installchangelogs -a $(builddir)/ChangeLog + for f in \ + debian/w3m/usr/share/doc/w3m/README.cookie \ + debian/w3m/usr/share/doc/w3m/README.m17n \ + debian/w3m/usr/share/doc/w3m/ja/FAQ.html \ + debian/w3m/usr/share/doc/w3m/ja/HISTORY \ + debian/w3m/usr/share/doc/w3m/ja/MANUAL.html \ + debian/w3m/usr/share/doc/w3m/ja/README \ + debian/w3m/usr/share/doc/w3m/ja/README.SSL \ + debian/w3m/usr/share/doc/w3m/ja/README.cookie \ + debian/w3m/usr/share/doc/w3m/ja/README.dict \ + debian/w3m/usr/share/doc/w3m/ja/README.func \ + debian/w3m/usr/share/doc/w3m/ja/README.keymap \ + debian/w3m/usr/share/doc/w3m/ja/README.m17n \ + debian/w3m/usr/share/doc/w3m/ja/README.mailcap \ + debian/w3m/usr/share/doc/w3m/ja/README.menu \ + debian/w3m/usr/share/doc/w3m/ja/README.migemo \ + debian/w3m/usr/share/doc/w3m/ja/README.mouse \ + debian/w3m/usr/share/doc/w3m/ja/STORY.html \ + debian/w3m/usr/share/doc/w3m/ja/examples/menu.default \ + debian/w3m/usr/share/doc/w3m/ja/examples/menu.submenu \ + debian/w3m/usr/share/man/ja/man1/w3m.1 \ + debian/w3m-img/usr/share/doc/w3m-img/README.img.ja; do \ + iconv -f euc-jp -t utf-8 "$$f" > "$$f".tmp && mv -f "$$f".tmp "$$f" || rm -f "$$f".tmp; \ + done + for f in \ + debian/w3m/usr/share/doc/w3m/HISTORY \ + debian/w3m/usr/share/doc/w3m/ja/README.passwd \ + debian/w3m/usr/share/doc/w3m/ja/README.pre_form \ + debian/w3m/usr/share/doc/w3m/ja/README.tab; do \ + iconv -f iso-2022-jp -t utf-8 "$$f" > "$$f".tmp && mv -f "$$f".tmp "$$f" || rm -f "$$f".tmp; \ + done dh_strip -a dh_compress -a -XREADME.func dh_lintian -a -- cgit v1.2.3