Do not recode the manpages in UTF-8.

This commit is contained in:
nekral-guest
2008-03-19 21:26:12 +00:00
parent 5f027bb6a4
commit ac4b6af8e9
3 changed files with 2 additions and 52 deletions

2
debian/changelog vendored
View File

@@ -27,6 +27,8 @@ shadow (1:4.1.1~rc1-1) UNRELEASED; urgency=low
+ debian/patches/401_cppw_src.dpatch
+ debian/patches/428_grpck_add_prune_option
* debian/watch: Add a watch file for shadow.
* debian/rules, debian/recode_manpages.sh: Do not recode the manpages.
Keep them in UTF-8.
-- Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> Sun, 24 Feb 2008 18:33:31 +0100

View File

@@ -1,50 +0,0 @@
#!/bin/sh
set -e
PACKAGE=$1
[ -z "$PACKAGE" ] && {
echo "Usage: $0 <package>"
exit 1
}
# Upstream man pages are UTF-8encoded.
# The man pages need to be recoded according to the encodings used in Debian.
# (defined in src/encodings.c in man-db)
# I've not found the encoding for zh_CN and zh_TW.
# It should be the default falback ISO-8859-1.
# However, the encoding of these pages seems wrong.
echo "/ ISO-8859-1
cs ISO-8859-2
de ISO-8859-1
es ISO-8859-1
fi ISO-8859-1
fr ISO-8859-1
hu ISO-8859-2
id ISO-8859-1
it ISO-8859-1
ja EUC-JP
ko EUC-KR
pl ISO-8859-2
pt_BR ISO-8859-1
ru KOI8-R
sv ISO-8859-1
tr ISO-8859-9
zh_CN GB18030
zh_TW BIG5" |
while read lang encoding
do
echo "recoding lang: $lang to $encoding"
for page in debian/$PACKAGE/usr/share/man/$lang/man[1-8]/*
do
if [ -f $page ]
then
echo "recoding $page"
iconv -t $encoding -f UTF8 < $page > $page.recoded
mv $page.recoded $page
fi
done
done

2
debian/rules vendored
View File

@@ -48,7 +48,6 @@ binary-install/login::
# Lintian and Linda overrides
install -c -m 444 debian/login.lintian-overrides debian/login/usr/share/lintian/overrides/login
install -c -m 444 debian/login.linda-overrides debian/login/usr/share/linda/overrides/login
/bin/sh ./debian/recode_manpages.sh login
binary-install/passwd::
install -c -m 444 man/shadowconfig.8 debian/passwd/usr/share/man/man8
@@ -74,7 +73,6 @@ endif
install -c -m 444 debian/passwd.lintian-overrides debian/passwd/usr/share/lintian/overrides/passwd
# Linda overrides files
install -c -m 444 debian/passwd.linda-overrides debian/passwd/usr/share/linda/overrides/passwd
/bin/sh ./debian/recode_manpages.sh passwd
binary-predeb/login::
# No real need for login to be setuid root