blob: ab5a6ffe83e7cab7b4241b67c8007185d1aae50f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$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()
|