[mythtv] [patch] allow override of compiletime instpath with env var
Wayne A. Hogue II
mythtv at chiphead.net
Fri Dec 26 10:18:41 EST 2003
This small patch will allow the overriding of the compiled in
installation path with the env var MYTHTVDIR. this allows me to move an
installation w/o having to recompile it.
If MYTHTVDIR is not set, the compiled in path is used.
-Wayne (Chiphead)
-------------- next part --------------
Index: mythcontext.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/mythcontext.cpp,v
retrieving revision 1.96
diff -u -d -r1.96 mythcontext.cpp
--- mythcontext.cpp 11 Dec 2003 02:56:04 -0000 1.96
+++ mythcontext.cpp 26 Dec 2003 15:10:24 -0000
@@ -38,7 +38,12 @@
exit(1);
}
- m_installprefix = PREFIX;
+ char *tmp_installprefix = getenv("MYTHTVDIR");
+ if (tmp_installprefix)
+ m_installprefix = tmp_installprefix;
+ else
+ m_installprefix = PREFIX;
+
m_settings = new Settings;
m_qtThemeSettings = new Settings;
More information about the mythtv-dev
mailing list