summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-04 16:29:34 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-04 16:29:34 +0200
commitc93c2656a8bb6d24ad52f20fccd6b425c84728e9 (patch)
treeaf2096a5773f65058718c49665ecc573e22dd075
parent86cbb880ba9638924e9c7a641d74f7ea887f38f5 (diff)
Use $SRCDIR favored over $PWD in ikiwiki config.
-rw-r--r--ikiwiki.setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki.setup b/ikiwiki.setup
index a232a38..59e679b 100644
--- a/ikiwiki.setup
+++ b/ikiwiki.setup
@@ -9,7 +9,7 @@
our ($basedir, $builddir, $domain, $gitrepo);
BEGIN {
# git hook requires full path as basedir: $ENV{'HOME'} . '/mywiki'
- $basedir = $ENV{'PWD'};
+ $basedir = $ENV{'SRCDIR'} || $ENV{'PWD'};
$builddir = $ENV{'BUILDDIR'} || $basedir . '/build';
$domain = 'example.org';
$gitrepo = 'wiki';