summaryrefslogtreecommitdiff
path: root/localikiwikicreatesite
diff options
context:
space:
mode:
Diffstat (limited to 'localikiwikicreatesite')
-rwxr-xr-xlocalikiwikicreatesite4
1 files changed, 3 insertions, 1 deletions
diff --git a/localikiwikicreatesite b/localikiwikicreatesite
index b15d1f3..27cc00a 100755
--- a/localikiwikicreatesite
+++ b/localikiwikicreatesite
@@ -70,9 +70,11 @@ perl -0 -pi -e '
s,#{([\s#]*The git post-update wrapper[^}]*\s*)#(\s*wrapper =>\s*")[^"]*("\,\s*[^}]*)#(\s*wrappermode =>[^}]*)#},{$1$2'$DESTSRCDIR/content.git/hooks/post-update-backend'$3$4},;
' $CFGDIR/ikiwiki.setup
(
+perl -0 -pi -e 's,\n(exec\s[^\n]*),\nhooks/post-update-ikiwiki\n\n$1,' $DESTSRCDIR/content.git/hooks/post-update
+chmod +x $DESTSRCDIR/content.git/hooks/post-update
cd $CFGDIR
git add ikiwiki.setup
-git commit -m "Adjust ikiwiki.setup to use actual paths and enable Git post-update wrapper"
+git commit -m "Adjust ikiwiki.setup to use actual paths, and add+enable Git post-update hooks"
)
## Add Makefile for further customization