summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-04 16:53:47 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-04 16:53:47 +0200
commitb38376bb7b7f5253df9a3b266f3ce8a399399d48 (patch)
treeba81c8711196a62aa0c0b7d07aa3b8d6700e00bf
parent1627572ad7486311c7df39a7becbf09230465d3d (diff)
Use $SRCDIR favored over $PWD in ikiwiki config.
-rw-r--r--ikiwiki_nb_admin.setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki_nb_admin.setup b/ikiwiki_nb_admin.setup
index 9a313e0..d078db8 100644
--- a/ikiwiki_nb_admin.setup
+++ b/ikiwiki_nb_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';