diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-08-22 01:06:12 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-08-22 01:06:12 +0000 |
commit | f62713e133a8e24cc5d80248ea6dc22407eb4c33 (patch) | |
tree | 506db8fa3a07030e73b10ef5fa3c6a75c445f51d /cad/vipec/files/patch-Setup.cpp | |
parent | 44b43272e21bd1640fb400f6ecd4a3260e90b592 (diff) | |
download | ports-f62713e133a8e24cc5d80248ea6dc22407eb4c33.tar.gz ports-f62713e133a8e24cc5d80248ea6dc22407eb4c33.zip |
Notes
Diffstat (limited to 'cad/vipec/files/patch-Setup.cpp')
-rw-r--r-- | cad/vipec/files/patch-Setup.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cad/vipec/files/patch-Setup.cpp b/cad/vipec/files/patch-Setup.cpp new file mode 100644 index 000000000000..419b8cf253bb --- /dev/null +++ b/cad/vipec/files/patch-Setup.cpp @@ -0,0 +1,22 @@ +--- Setup.cpp.orig Fri Oct 3 09:31:11 2003 ++++ Setup.cpp Fri Aug 20 23:49:30 2004 +@@ -163,8 +163,17 @@ + vipecHome_ = QString(getenv("VIPECHOME")); + if ( vipecHome_.isEmpty() ) + { +- vipecHome_ = dir.absPath(); +- Logger::warning("VIPECHOME not set, assuming " + vipecHome_); ++#ifdef VIPECHOME ++ vipecHome_ = QString(VIPECHOME); ++ if (vipecHome_.isEmpty()) ++ { ++ vipecHome_ = dir.absPath(); ++ Logger::warning("VIPECHOME not set, assuming " + vipecHome_); ++ } ++#else ++ vipecHome_ = dir.absPath(); ++ Logger::warning("VIPECHOME not set, assuming " + vipecHome_); ++#endif + } + helpFilename_ = vipecHome_ + "/help/index.html"; + configFilename_ = vipecHome_ + "/vipec.cfg"; |