1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/astro/xtide/files/patch-Global.cc
Bernhard Froehlich d7d73fdeb1 - Update to 2.11
- Pet portlint

PR:		ports/150596
Submitted by:	Armin Pirkovitsch <armin at frozen-zone dot org>
Approved by:	beat (co-mentor)
2010-09-16 17:55:54 +00:00

25 lines
1019 B
C++

--- Global.cc.orig 2010-09-14 16:49:16.000000000 +0200
+++ Global.cc 2010-09-14 16:50:18.000000000 +0200
@@ -203,7 +203,7 @@
#ifdef UseLocalFiles
static const char confFile[] = "xtide.conf";
#else
- static const char confFile[] = "/etc/xtide.conf";
+ static const char confFile[] = "%%PREFIX%%/etc/xtide.conf";
#endif
static bool firstCall (true);
static SafeVector<Dstr> xtideConfLines (2U);
@@ -390,10 +390,10 @@
break;
case Error::NO_HFILE_PATH:
text_out += "NO_HFILE_PATH\n\
-If /etc/xtide.conf is not provided, you must set the environment variable\n\
+If %%PREFIX%%/etc/xtide.conf is not provided, you must set the environment variable\n\
HFILE_PATH to point to your harmonics files. Example:\n\
export HFILE_PATH=/usr/local/share/xtide/harmonics.tcd\n\
-Please refer to the documentation for usage of /etc/xtide.conf.";
+Please refer to the documentation for usage of %%PREFIX%%/etc/xtide.conf.";
break;
case Error::NO_HFILE_IN_PATH:
text_out += "NO_HFILE_IN_PATH\n\