summaryrefslogtreecommitdiff
path: root/2d
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-05-21 19:49:59 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-05-21 19:53:13 -0400
commitcc59c11398cb9feff3eb1cb14bab664cc2d1ca2e (patch)
tree89d7be487ac5829275dfe41c1929e2fc3e407cf5 /2d
parent6e1e00e7438acc477c5574935b3ecb9c140d0a22 (diff)
Add pre-inst-env script.
* configure.ac: Add pre-inst-env as config file. * pre-inst-env.in: New file. * 2d/config.scm.in (%pkgdatadir): Use GUILE_2D_PKGDATADIR environment variable, if defined. * README.org: Document pre-inst-env script. * .gitignore: Ignore pre-inst-env.
Diffstat (limited to '2d')
-rw-r--r--2d/config.scm.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/2d/config.scm.in b/2d/config.scm.in
index 725bcda..e62a2b1 100644
--- a/2d/config.scm.in
+++ b/2d/config.scm.in
@@ -24,4 +24,5 @@
(define-module (2d config)
#:export (%pkgdatadir))
-(define %pkgdatadir "@pkgdatadir@")
+(define %pkgdatadir
+ (or (getenv "GUILE_2D_PKGDATADIR") "@pkgdatadir@"))