[Chinese-commits] [manpages-zh] 03/131: merge changes in debian packaging

Boyuan Yang hosiet-guest at moszumanska.debian.org
Tue Dec 13 19:59:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

hosiet-guest pushed a commit to branch master
in repository manpages-zh.

commit 9c779a034e1a3605ec70d58cfaf137857d10b9e0
Author: LI Daobing <lidaobing at gmail.com>
Date:   Thu Feb 14 20:49:47 2008 +0800

    merge changes in debian packaging
---
 Makefile      |  54 ++++++++++++----------
 utils/totw.pl | 141 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 171 insertions(+), 24 deletions(-)

diff --git a/Makefile b/Makefile
index c4e204b..217a9d8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-NAME=man-pages-zh_CN
-DESTDIR=/usr/share
-CONFDIR=/etc
+NAME=manpages-zh
+INSTDIR=$(DESTDIR)/usr/share
+CONFDIR=$(DESTDIR)/etc
 TRANSLATED=DOCS/00TRANSLATED
 
 MAN=1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o 3pm 3perl
@@ -15,8 +15,16 @@ gb:
 	done
 	for f in `cat $(TRANSLATED)` ; do \
 		iconv -f utf8 -t gb18030 src/$$f > GB/$$f ; \
+		dos2unix GB/$$f ; \
+	done
+b5:
+	for i in $(MAN) ; do \
+		mkdir -p BIG5/man$$i ; \
+	done
+	for f in `cat $(TRANSLATED)` ; do \
+		iconv -f utf8 -t gb18030 src/$$f | autob5 -i gb -o big5 | utils/totw.pl > BIG5/$$f ; \
+		dos2unix BIG5/$$f ; \
 	done
-	cp src/man.macros GB/
 html-gb:
 	mkdir html-gb
 	for i in $(MAN) ; do \
@@ -36,27 +44,25 @@ clean:
 	-o -name *.3gl -o -name *.[13457]x -o -name *.[013]p \
 	|sort > TRANSLATED && cd .. && mv src/TRANSLATED $(TRANSLATED)
 install-doc:
-	rm -rf $(DESTDIR)/doc/$(NAME)
-	mkdir -p $(DESTDIR)/doc
-	cp -R DOCS $(DESTDIR)/doc/$(NAME)
-	cp README* $(DESTDIR)/doc/$(NAME)
-	cp COPYING $(DESTDIR)/doc/$(NAME)
+	rm -rf $(INSTDIR)/doc/$(NAME)
+	mkdir -p $(INSTDIR)/doc
+	cp -R DOCS $(INSTDIR)/doc/$(NAME)
+	cp README* $(INSTDIR)/doc/$(NAME)
+	cp COPYING $(INSTDIR)/doc/$(NAME)
 install-u8:
-	rm -rf $(DESTDIR)/man/zh_CN.UTF-8
-	mkdir -p $(DESTDIR)/man
-	cp -R UTF-8 $(DESTDIR)/man/zh_CN.UTF-8
+	rm -rf $(INSTDIR)/man/zh_CN.UTF-8
+	mkdir -p $(INSTDIR)/man
+	cp -R UTF-8 $(INSTDIR)/man/zh_CN.UTF-8
 install-gb:
-	rm -rf $(DESTDIR)/man/zh_CN.GB* /usr/share/man/zh_CN.GB*
-	mkdir -p $(DESTDIR)/man
-	cp -R GB $(DESTDIR)/man/zh_CN.GB18030
-	ln -s /usr/share/man/zh_CN.GB18030 $(DESTDIR)/man/zh_CN.GB2312
-	ln -s /usr/share/man/zh_CN.GB18030 $(DESTDIR)/man/zh_CN.GBK
-	ln -s /usr/share/man/zh_CN.GB18030 $(DESTDIR)/man/zh_CN
-	mkdir -p $(CONFDIR)/profile.d
-	cp -f src/cman/cman.conf $(CONFDIR)/
-	cp -pf src/cman/cman.sh $(CONFDIR)/profile.d/
-	cp -pf src/cman/cman.csh $(CONFDIR)/profile.d/
+	rm -rf $(INSTDIR)/man/zh_CN.GB* $(INSTDIR)/man/zh_CN
+	mkdir -p $(INSTDIR)/man
+	cp -R GB $(INSTDIR)/man/zh_CN
+install-b5:
+	rm -rf $(INSTDIR)/man/zh_TW
+	mkdir -p $(INSTDIR)/man
+	cp -R BIG5 $(INSTDIR)/man/zh_TW
 uninstall:
-	rm -rf $(DESTDIR)/doc/$(NAME)
-	rm -rf $(DESTDIR)/man/zh_CN* /usr/share/man/zh_CN*
+	rm -rf $(INSTDIR)/doc/$(NAME)
+	rm -rf $(INSTDIR)/man/zh_CN* /usr/share/man/zh_CN*
+	rm -rf $(INSTDIR)/man/zh_TW* /usr/share/man/zh_TW*
 	rm -f $(CONFDIR)/cman.conf $(CONFDIR)/profile.d/cman.*
diff --git a/utils/totw.pl b/utils/totw.pl
new file mode 100644
index 0000000..42ea957
--- /dev/null
+++ b/utils/totw.pl
@@ -0,0 +1,141 @@
+#!/usr/bin/perl -p
+
+# ���{���O�Ψӹ� cman �c�餤�媩�@�X���u����B�z�v�C
+#
+# �@�̡G�N�F�F Anthony Fok <foka at debian.org>
+# ���v�GGNU General Public License v2 ��s����
+
+# next if /^%/;
+
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��/$1�u/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��/$1�v/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��/$1��/);
+
+# ² -> �c
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�S��/$1�d��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(��|��|�W))�S/$1�d/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��(?=�@|�y)/$1�s/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�_��/$1�ƻs/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�ɺ�/$1����/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��(?=��|��|��)/$1�C/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(��|�o))��/$1�G/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�_/$1��/);
+# 1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(��|��|��|��|�P|�b|��))�_/$1��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��/$1��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�z�b/$1���b/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(?:��|��))��/$1�x/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�E/$1�l/);
+
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�H/$1��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(?:�{|��|��|��|��|��))��/$1�H/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��(?=�x|��|��|��)/$1�H/);
+
+
+    s/�ާ@�t��/�@�~�t��/g;
+    s/�奻���/�¤�r��/g;
+    s/��r�B�z/��ѳB�z/g;
+#    1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�奻/$1��r/);
+    s/�奻(?=�Ҧ�|�s��|�榡)/��r/g;
+    s/���޲z��/�ɮ׺޲z��/g;
+    s/���t��/�ɮרt��/g;
+    s/�A�Ⱦ�/���A��/g;
+
+s/�Y���Y��/�H���Y��/g;
+s/���f�t��/�����t��/g;
+s/X~���f/X~����/g;
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���f/$1����/);
+
+
+# hashao �� "server" �s�@ "�A�;�" �K�K
+s/�A�;�/���A��/g;
+
+# Riser �� "server" �s�@ "�A�ȵ{��" �K�K
+s/�A�ȵ{��/���A��/g;
+
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�p���/$1�q��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)����/$1�֤�/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�A��(?=��)/$1�H��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�r��/$1�r��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��x/$1�I��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���/$1���/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�̹�/$1�ù�/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)����/$1���/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)����/$1�ƹ�/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�}��/$1�Z��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��/$1���/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���p��/$1��ں��/);
+
+#
+
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�Τ�/$1�ϥΪ�/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)(�ʬ�|�q�{)/$1�w�]/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�n��/$1�n�J/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���W(?!��|�r)/$1�ɦW/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���/$1�ɮ�/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)����/$1���/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�ݮe/$1�ۮe/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�{��/$1�{��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���R�O�](?!�t|�A)/$1�����M��/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���R�O/$1����/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���L��/$1�C���/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���L/$1�C�L/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��u/$1���/);
+# 1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���/$1�䴩/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���/$1�����ɦW/);
+1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)���s/$1�O����/);
+s/�t�m���/�]�w��/g;
+s/(ĵ�i|���~)�H��/$1�T��/g;
+
+
+    s/�n��](?!��|�A)/�M��/g;
+    1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(�n|�w))��/$1��/);
+    1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?(�n|�w|��|��|Zip~))�L/$1��/);
+    1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)��(�N)?�X/$1��l�X/);
+
+# zh_HK --> zh_TW
+#    1 while (s/^((?:[\x00-\x7f]|[\x80-\xff].)*?)�Ϻ�/$1�Ϥ�/);
+
+
+# s/\<t\<(.+?)\>\>/$1/g;
+
+# s/\<s\<����\>\>/���/g;
+# s/\<s\<���\>\>/�ɮ�/g;
+# s/\<s\<�ɮ�\>\>/�ɮ׮w/g;
+# s/\<s\<���W\>\>/�ɮצW��/g;
+# s/\<s\<�t�m���\>\>/�]�w��/g;
+# s/\<s\<�t�m\>\>/�]�w/g;
+# s/\<s\<�{��\>\>/�{��/g;
+# s/�Ȥ�{��/�Ȥ�{��/g;
+# s/\<s\<�ƾ�\>\>/���/g;
+# s/\<s\<�H��\>\>/��T/g;
+# s/\<s\<�q�{\>\>/�w�]/g;
+# s/\<s\<�ʬ�\>\>/�w�]/g;
+# s/\<s\<����\>\>/�h�D/g;
+# s/\<s\<�޾�\>\>/�Ұ�/g;
+# s/\<s\<���s\>\>/�O����/g;
+# s/\<s\<���\>\>/�䴩/g;
+# s/\<s\<�B��\>\>/����/g;
+# s/\<s\<�]\>\>/�M��/g;
+# s/\<s\<�`\>\>/��/g;
+# s/\<s\<��u\>\>/���/g;
+
+    s/��ϽL/��ϺϺ�/g;
+    s/����L/��ϺϺ�/g;
+    s/�ҰʽL/�ҰʺϺ�/g;
+    s/�޾ɽL/�ҰʺϺ�/g;
+
+# And, finally, add an extra backslash where needed.
+s/\G((?:[\x00-\x7f]|[\x80-\xff].)*?[\x80-\xff]\\)/$1\\/g;
+
+# ����
+
+sub changewww () {
+    s|^(<HTML lang="zh)">|$1-TW">|;
+    s/(\.zh)(?=\.(?:gif|jpg|png))/$1-tw/g;
+    s|^<A href=".*">(���� \(Big5\))</A>(?= )|$1|;
+
+    s/���f�t��/�����t��/g;
+    s/�l(��|��)�C��/�q�H�׾�/g;
+    s/�蹳((��)?��)/�M�g$1/g;
+    s/����H�ҫ����/������ҫ����/g;
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/chinese/manpages-zh.git



More information about the Chinese-commits mailing list