summaryrefslogtreecommitdiff
path: root/localikiwikicreatesite
diff options
context:
space:
mode:
Diffstat (limited to 'localikiwikicreatesite')
-rwxr-xr-xlocalikiwikicreatesite5
1 files changed, 3 insertions, 2 deletions
diff --git a/localikiwikicreatesite b/localikiwikicreatesite
index f3cea73..b95949f 100755
--- a/localikiwikicreatesite
+++ b/localikiwikicreatesite
@@ -3,7 +3,7 @@
# /usr/local/bin/localikiwikicreatesite
# Copyright 2008 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localikiwikicreatesite,v 1.10 2008-02-13 12:56:17 jonas Exp $
+# $Id: localikiwikicreatesite,v 1.11 2008-02-13 13:09:26 jonas Exp $
#
# Initialize ikiwiki site
#
@@ -115,6 +115,7 @@ git commit -m "initial commit"
git remote add origin $DESTSRCDIR/${project}_content.git
git config branch.master.merge refs/heads/master
git push --all
+chmod +x $DESTSRCDIR/${project}_content.git/hooks/post-update
)
## Init backend RCS
@@ -127,6 +128,7 @@ git commit -m "initial commit"
git remote add origin $DESTSRCDIR/$project.git
git config branch.master.merge refs/heads/master
git push --all
+chmod +x $DESTSRCDIR/${project}.git/hooks/post-update
)
## Adjust backend to actual paths, and enable Git post-update wrapper
@@ -142,7 +144,6 @@ perl -0 -pi -e '
' $CFGDIR/ikiwiki.setup
(
perl -0 -pi -e 's,\n(exec\s[^\n]*),\nhooks/post-update-'"$project"'\n\n$1,' $DESTSRCDIR/${project}_content.git/hooks/post-update
-chmod +x $DESTSRCDIR/${project}_content.git/hooks/post-update
cd $CFGDIR
git add ikiwiki.setup
git commit -m "Adjust ikiwiki.setup to use actual paths, and add+enable Git post-update hooks"