28 lines
1.3 KiB
Text
28 lines
1.3 KiB
Text
$NetBSD: patch-ac,v 1.2 2011/07/03 20:44:45 jym Exp $
|
|
|
|
--- bg5ps.orig 2000-02-14 20:46:43.000000000 +0000
|
|
+++ bg5ps
|
|
@@ -11,7 +11,7 @@
|
|
#
|
|
# Revision 1.5 2000/02/14 20:40:04 platin
|
|
#
|
|
-# Change default config file to /etc/chinese/bg5ps.conf
|
|
+# Change default config file to @PKG_SYSCONFDIR@/bg5ps.conf
|
|
#
|
|
# Revision 1.4 2000/02/14 20:28:35 platin
|
|
# Automatic selection of fontName in echo Encoding.
|
|
@@ -443,10 +443,10 @@ mpage -2 big5.txt | bg5ps -en big5 -nps
|
|
exec l
|
|
cf.close()
|
|
else:
|
|
- sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/chinese/bg5ps.conf.")
|
|
- if os.path.isfile("/etc/chinese/bg5ps.conf"):
|
|
- sys.stderr.write("\n /etc/chinese/bg5ps.conf found. Use configuration file /etc/chinese/bg5ps.conf")
|
|
- cf=open("/etc/chinese/bg5ps.conf","r")
|
|
+ sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying @PKG_SYSCONFDIR@/bg5ps.conf.")
|
|
+ if os.path.isfile("@PKG_SYSCONFDIR@/bg5ps.conf"):
|
|
+ sys.stderr.write("\n @PKG_SYSCONFDIR@/bg5ps.conf found. Use configuration file @PKG_SYSCONFDIR@/bg5ps.conf")
|
|
+ cf=open("@PKG_SYSCONFDIR@/bg5ps.conf","r")
|
|
for l in cf.readlines():
|
|
exec l
|
|
cf.close()
|