summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalikiwikicreatesite11
1 files changed, 7 insertions, 4 deletions
diff --git a/localikiwikicreatesite b/localikiwikicreatesite
index 3bd3019..8f3052c 100755
--- a/localikiwikicreatesite
+++ b/localikiwikicreatesite
@@ -3,7 +3,7 @@
# /usr/local/bin/localikiwikicreatesite
# Copyright 2008 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localikiwikicreatesite,v 1.14 2008-02-13 17:03:49 jonas Exp $
+# $Id: localikiwikicreatesite,v 1.15 2008-02-13 17:13:59 jonas Exp $
#
# Initialize ikiwiki site
#
@@ -67,10 +67,13 @@ git_init_pub() {
git_init_work() {
repo="$DESTSRCDIR/$1.git"
targetdir="$2"
+ shift 2
(cd $targetdir
git init
- echo /.ikiwiki > .gitignore
+ for ignore in "$@"; do
+ echo "$1" >> .gitignore
+ done
git add .
git commit -m "initial commit"
git remote add origin $repo
@@ -131,8 +134,8 @@ mkdir -p $CFGDIR
cp /usr/share/doc/ikiwiki/html/ikiwiki.setup $CFGDIR
## Init working RCS repositories
-git_init_work "$project" "$CFGDIR"
-git_init_work "${project}_content" "$SRCDIR"
+git_init_work "$project" "$CFGDIR" "/content"
+git_init_work "${project}_content" "$SRCDIR" "/.ikiwiki"
## Adjust backend to actual paths, and enable Git post-update wrapper
perl -pi -e '