mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Allow overriding the default xslt path
It's very annoying to have to do "make install" to test a new xslt file, just because the default xslt path has the standard install path as the first entry. At the same time, we do want to default to just using the standard install location first. So to allow both testing, and having a nice sane default, just add support for a SUBSURFACE_XSLT_PATH environment variable that overrides the default one if it exists. So then you can just do SUBSURFACE_XSLT_PATH=xslt ./subsurface to run subsurface from inside the git tree itself, using the current files in the git xslt subdirectory. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b2e4ca552f
commit
058b84cca0
1 changed files with 5 additions and 1 deletions
|
@ -1462,7 +1462,11 @@ static xsltStylesheetPtr try_get_stylesheet(const char *path, int len, const cha
|
|||
|
||||
static xsltStylesheetPtr get_stylesheet(const char *name)
|
||||
{
|
||||
const char *path = xslt_path, *next;
|
||||
const char *path, *next;
|
||||
|
||||
path = getenv("SUBSURFACE_XSLT_PATH");
|
||||
if (!path)
|
||||
path = xslt_path;
|
||||
|
||||
do {
|
||||
int len;
|
||||
|
|
Loading…
Reference in a new issue