pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/dict-server Patch for textproc/colorit
details: https://anonhg.NetBSD.org/pkgsrc/rev/eb28c174d7f7
branches: trunk
changeset: 603752:eb28c174d7f7
user: cheusov <cheusov%pkgsrc.org@localhost>
date: Sat May 12 15:18:23 2012 +0000
description:
Patch for textproc/colorit
diffstat:
textproc/dict-server/Makefile.common | 3 +-
textproc/dict-server/distinfo | 3 +-
textproc/dict-server/patches/patch-colorit.in | 46 +++++++++++++++++++++++++++
3 files changed, 50 insertions(+), 2 deletions(-)
diffs (71 lines):
diff -r 42913c907630 -r eb28c174d7f7 textproc/dict-server/Makefile.common
--- a/textproc/dict-server/Makefile.common Sat May 12 15:17:02 2012 +0000
+++ b/textproc/dict-server/Makefile.common Sat May 12 15:18:23 2012 +0000
@@ -1,4 +1,5 @@
-# $NetBSD: Makefile.common,v 1.3 2011/10/09 10:02:44 cheusov Exp $
+# $NetBSD: Makefile.common,v 1.4 2012/05/12 15:18:23 cheusov Exp $
+# used by textproc/colorit/Makefile
# used by textproc/dict-server/Makefile
# used by textproc/dict-client/Makefile
DISTNAME= dictd-1.12.0
diff -r 42913c907630 -r eb28c174d7f7 textproc/dict-server/distinfo
--- a/textproc/dict-server/distinfo Sat May 12 15:17:02 2012 +0000
+++ b/textproc/dict-server/distinfo Sat May 12 15:18:23 2012 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.19 2011/02/03 12:55:51 obache Exp $
+$NetBSD: distinfo,v 1.20 2012/05/12 15:18:23 cheusov Exp $
SHA1 (dictd-1.12.0.tar.gz) = 0a1b0c4103e5c3c8b749f9a5dc005cb70e4639e8
RMD160 (dictd-1.12.0.tar.gz) = 56abaebf57baabcb72b96ccf6ec5c39cc3a67ceb
Size (dictd-1.12.0.tar.gz) = 423183 bytes
+SHA1 (patch-colorit.in) = 84e205155cce66b36196c03417deab74c10d8a1a
diff -r 42913c907630 -r eb28c174d7f7 textproc/dict-server/patches/patch-colorit.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/dict-server/patches/patch-colorit.in Sat May 12 15:18:23 2012 +0000
@@ -0,0 +1,46 @@
+$NetBSD: patch-colorit.in,v 1.1 2012/05/12 15:18:24 cheusov Exp $
+
+# Fix for -c option. Commited to upstream.
+--- colorit.in.orig 2008-02-08 10:59:15.000000000 +0000
++++ colorit.in
+@@ -6,15 +6,6 @@
+
+ sysconfdir=@sysconfdir@
+
+-if test -r $HOME/.coloritrc; then
+- config_file=$HOME/.coloritrc
+-else if test -r "$sysconfdir/colorit.conf"; then
+- config_file="$sysconfdir/colorit.conf"
+-else
+- echo "configuration file is not readable" > "/dev/stderr"
+- exit 1
+-fi fi
+-
+ usage (){
+ printf "\
+ colorit is intended to markup stdin or input files\n\
+@@ -37,6 +28,8 @@ colorit 0.0.1\n\
+
+ pp='m4'
+
++config_file=$HOME/.coloritrc
++
+ while test $# -ne 0; do
+ case $1 in
+ -h|--help)
+@@ -70,6 +63,15 @@ while test $# -ne 0; do
+ shift
+ done
+
++if test -r "$config_file"; then
++ :
++elif test -r "$sysconfdir/colorit.conf"; then
++ config_file="$sysconfdir/colorit.conf"
++else
++ echo "configuration file is not readable" > "/dev/stderr"
++ exit 1
++fi
++
+ if test "_$pp" = "_-"; then
+ pp=
+ fi
Home |
Main Index |
Thread Index |
Old Index