1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 10_rt_confdir.dpatch by <sjq@wompom>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Correct the system config path of the RT command line tool.
6
## DP: <http://issues.bestpractical.com/Ticket/Display.html?id=15372>
7
## DP: Applied upstream as 5bc33b2500797724f3391890ad2f78a098bda2de
10
diff -urNad trunk~/bin/rt.in trunk/bin/rt.in
11
--- trunk~/bin/rt.in 2007-05-23 22:55:33.000000000 +0300
12
+++ trunk/bin/rt.in 2007-05-23 22:55:34.000000000 +0300
16
# Still nothing? We'll fall back to some likely defaults.
17
- for ("$HOME/$rc", "/etc/rt.conf") {
18
+ for ("$HOME/$rc", "@LOCAL_ETC_PATH@/rt.conf") {
19
return parse_config_file($_) if (-r $_);
23
The program looks for configuration directives in a file named .rtrc
24
(or $RTCONFIG; see below) in the current directory, and then in more
25
distant ancestors, until it reaches /. If no suitable configuration
26
- files are found, it will also check for ~/.rtrc and /etc/rt.conf.
27
+ files are found, it will also check for ~/.rtrc and
28
+ @RT_ETC_PATH@/rt.conf.
30
Configuration directives: