From cc59c11398cb9feff3eb1cb14bab664cc2d1ca2e Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 21 May 2014 19:49:59 -0400 Subject: 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. --- 2d/config.scm.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '2d') 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@")) -- cgit v1.2.3