summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-04 16:52:57 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-04 16:52:57 +0200
commitd4187f9a1c18c94ce76668a543ef9a585a67572c (patch)
tree845b63a5bb6d872960c23023063705fd57e500bc
parent6cea09502ae7667d21f4ce741f3fc32a65dca143 (diff)
Use $SRCDIR favored over $PWD in ikiwiki config.
-rw-r--r--ikiwiki_da_admin.setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki_da_admin.setup b/ikiwiki_da_admin.setup
index ba354c3..2b83361 100644
--- a/ikiwiki_da_admin.setup
+++ b/ikiwiki_da_admin.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';