[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: In-tree datafiles
From: |
Ralf Wildenhues |
Subject: |
Re: In-tree datafiles |
Date: |
Mon, 15 Sep 2008 08:44:42 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hello David,
* David Sveningsson wrote on Sun, Sep 14, 2008 at 10:24:34PM CEST:
> Hi, my project has some datafiles that is installed into pkgdatadir. I
> would however like to use the in-tree datafiles when I am developing the
> application.
[...]
> What is the normal way to handle such situations? I mean, I can't be the
> first to have this problem.
Typically, this comes up for the testing part of the package (make
check). In the simplest case, set TESTS_ENVIRONMENT (used for the
programs listed in the TESTS macro). Otherwise, you can use a wrapper
script (or scriptlet to be sourced) for your uninstalled programs that
sets an environment variable that overrides the compiled-in value of
DATADIR. This approach has the advantage of not requiring a compile
when installing.
Hope that helps.
Cheers,
Ralf
- In-tree datafiles, David Sveningsson, 2008/09/14
- Re: In-tree datafiles,
Ralf Wildenhues <=