[Chinese-commits] [manpages-zh] 05/31: remove obsolete tools

Boyuan Yang hosiet-guest at moszumanska.debian.org
Sat Dec 24 14:25:54 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 ee92bd0352f540a0e808b556a5786795759056bb
Author: Boyuan Yang <073plan at gmail.com>
Date:   Sat Dec 17 00:10:52 2016 +0800

    remove obsolete tools
---
 utils/bi2fbfi.pl       | 12 ------------
 utils/html2man         |  9 ---------
 utils/man2html         |  5 ++---
 utils/release-manpages | 16 ----------------
 4 files changed, 2 insertions(+), 40 deletions(-)

diff --git a/utils/bi2fbfi.pl b/utils/bi2fbfi.pl
deleted file mode 100755
index e7ed116..0000000
--- a/utils/bi2fbfi.pl
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env perl
-#
-# 将html 格式中的<B></B>转换为roff 格式中的\fB \fR
-# <I></I> 也转换为 \fI \fR
-#
-while(<>){
-	s/\<b\>(.*?)\<\/b\>/\\fB\1\\fR/g;
-	s/\<B\>(.*?)\<\/B\>/\\fB\1\\fR/g;
-	s/\<i\>(.*?)\<\/i\>/\\fI\1\\fR/g;
-	s/\<I\>(.*?)\<\/I\>/\\fI\1\\fR/g;
-	print
-	}
diff --git a/utils/html2man b/utils/html2man
deleted file mode 100755
index 039985d..0000000
--- a/utils/html2man
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/perl
-while(<>){
-	s/gb2312/utf8/g;
-	s/<DD>//ig;
-	s/<DT>//ig;
-	s/<DL>//ig;
-	s/<\/DL>//ig;
-	print
-}
diff --git a/utils/man2html b/utils/man2html
index 7b167b5..96acc40 100755
--- a/utils/man2html
+++ b/utils/man2html
@@ -1,9 +1,8 @@
 #!/bin/sh
 # bbbush <bbbush at 163.com> 20031123
-# you need to set LC_ALL to zh_CN.GB18030 before you use this script
-# to process GB encoded man pages.
+# hosiet <073plan at gmail.com> 20161216 (review)
 
-man2html="/usr/bin/groff -Thtml -mandoc"
+man2html="/usr/bin/groff -T html -m mandoc"
 if [ ! $# -le "1" ] ;then
 	echo "Error! $0 Need exactly 1 arguments and act as a pipe"
 	exit
diff --git a/utils/release-manpages b/utils/release-manpages
deleted file mode 100755
index d92f522..0000000
--- a/utils/release-manpages
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-manpages=man-pages-zh_CN
-release=$manpages-1.5
-rm -rf $manpages*
-rm -rf finally
-cvs -d:pserver:anonymous at sf.linuxforum.net:/cvsroot/cmpp export -r HEAD $manpages
-mv $manpages $release
-count=`wc -l $release/DOCS/00TRANSLATED`
-tar zcf $release.tar.gz $release
-rpmbuild -ta $release.tar.gz
-mkdir finally
-mv /usr/src/redhat/SRPMS/$manpages*.src.rpm finally/
-mv /usr/src/redhat/RPMS/noarch/$manpages*.rpm finally/
-mv $release.tar.gz finally/
-rm -rf $manpages*
-echo $count

-- 
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