summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-04 16:51:37 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-04 16:51:37 +0200
commit990d61d3fe7f2a8d83f98ab5844f865c33f2f08f (patch)
treeb00b6d99e86670bd744728e3e9734849a1aa8007
parenta6e48e55ff509cb43c915dee441a622997554929 (diff)
Use $SRCDIR favored over $PWD in ikiwiki config.
-rw-r--r--ikiwiki_admin.setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki_admin.setup b/ikiwiki_admin.setup
index b7e67c8..2f5f357 100644
--- a/ikiwiki_admin.setup
+++ b/ikiwiki_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';