rpms/groff/F-8 groff.spec,1.56,1.57 nroff,1.5,1.6
Marcela Mašláňová (mmaslano)
fedora-extras-commits at redhat.com
Fri Jan 25 09:58:49 UTC 2008
- Previous message (by thread): rpms/perl-Text-Quoted/devel .cvsignore, 1.5, 1.6 perl-Text-Quoted.spec, 1.12, 1.13 sources, 1.5, 1.6
- Next message (by thread): rpms/avr-binutils/devel .cvsignore, 1.2, 1.3 avr-binutils.spec, 1.5, 1.6 sources, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mmaslano
Update of /cvs/pkgs/rpms/groff/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26816
Modified Files:
groff.spec nroff
Log Message:
support of -T option in nroff
Index: groff.spec
===================================================================
RCS file: /cvs/pkgs/rpms/groff/F-8/groff.spec,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- groff.spec 8 Oct 2007 08:19:31 -0000 1.56
+++ groff.spec 25 Jan 2008 09:58:06 -0000 1.57
@@ -3,7 +3,7 @@
Summary: A document formatting system
Name: groff
Version: 1.18.1.4
-Release: 10%{?dist}
+Release: 11%{?dist}
License: GPLv2 and GFDL
Group: Applications/Publishing
URL: http://groff.ffii.org
@@ -239,6 +239,9 @@
%endif
%changelog
+* Fri Jan 25 2008 Marcela Maslanova <mmaslano at redhat.com> - 1.18.1.4-11
+- nroff support -T
+
* Mon Oct 8 2007 Marcela Maslanova <mmaslano at redhat.com> - 1.18.1.4-10
- path for groffer wasn't set correctly #89210
Index: nroff
===================================================================
RCS file: /cvs/pkgs/rpms/groff/F-8/nroff,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- nroff 16 Aug 2007 14:11:35 -0000 1.5
+++ nroff 25 Jan 2008 09:58:06 -0000 1.6
@@ -4,52 +4,8 @@
prog="$0"
charset_in=iso-8859-1
charset_out=`locale charmap 2>/dev/null`
-opts="-mtty-char -Tutf8"
-
-# Default device.
-# First try the "locale charmap" command, because it's most reliable.
-# On systems where it doesn't exist, look at the environment variables.
-case "`locale charmap 2>/dev/null`" in
- UTF-8)
- T=-Tutf8 ;;
- ISO-8859-1)
- T=-Tlatin1 ;;
- IBM-1047)
- T=-Tcp1047 ;;
- EUC-JP)
- T=-Tnippon ;;
- EUC-KR)
- T=-Tkorean ;;
- *)
- case "${LC_ALL-${LC_CTYPE-${LANG}}}" in
- *.UTF-8)
- T=-Tutf8 ;;
- iso_8859_1 | *.ISO-8859-1)
- T=-Tlatin1 ;;
- *.IBM-1047)
- T=-Tcp1047 ;;
- ja_JP.ujis | ja_JP.eucJP)
- T=-Tnippon ;;
- ko_KR.eucKR)
- T=-Tkorean ;;
- *)
- case "$LESSCHARSET" in
- utf-8)
- T=-Tutf8 ;;
- latin1)
- T=-Tlatin1 ;;
- cp1047)
- T=-Tcp1047 ;;
- japanese)
- T=-Tnippon ;;
- ko)
- T=-Tkorean ;;
- *)
- T=-Tascii8 ;;
- esac ;;
- esac ;;
-esac
-
+opts="-mtty-char"
+T=""
for i
do
@@ -58,19 +14,15 @@
opts="$opts -P-c" ;;
-h)
opts="$opts -P-h" ;;
- -[eq] | -s*)
- # ignore these options
- ;;
-[mrnoT])
echo $"option $1 requires an argument" >&2
exit 1 ;;
-[iptSUC] | -[mrno]*)
opts="$opts $1" ;;
-Tascii | -Tlatin1 | -Tutf8 | -Tcp1047 | -Tascii8 | -Tnippon | -Tkorean)
- opts=
T=$1 ;;
- -T*)
- # ignore other devices
+ -[eq] | -s* | -u* | -T*)
+ # ignore these options
;;
-v | --version)
echo $"GNU nroff (groff) with Red Hat i18n/l10n support"
@@ -95,6 +47,11 @@
shift
done
+# Don't convert encodings when -T is specified
+[ -n "$T" ] && exec /usr/bin/groff $opts $T ${1+"$@"} 2>/dev/null
+
+opts="$opts -Tutf8"
+
if TMPFILE=$(mktemp /tmp/man.XXXXXX 2>/dev/null); then
trap "rm -f $TMPFILE" 0 1 2 3 15
cat ${1+"$@"} >| $TMPFILE
@@ -120,7 +77,6 @@
# This shell script is intended for use with man, so warnings are
# probably not wanted. Also load nroff-style character definitions.
-
if [ $charset_in = utf-8 -a $charset_out = UTF-8 ]; then
if [ $TMPFILE = buf ]; then
echo -n "$buf" | /usr/bin/groff $opts 2>/dev/null
@@ -143,5 +99,4 @@
rm -f $TMPFILE
fi
fi
-
# eof
- Previous message (by thread): rpms/perl-Text-Quoted/devel .cvsignore, 1.5, 1.6 perl-Text-Quoted.spec, 1.12, 1.13 sources, 1.5, 1.6
- Next message (by thread): rpms/avr-binutils/devel .cvsignore, 1.2, 1.3 avr-binutils.spec, 1.5, 1.6 sources, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list