blob: 49edcd2fb33979d63fcbcf2171359bf54bda155d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#!/bin/bash
#
# Basic files templater module.
#
# Parameters
SHARE="$1"
# Include basic functions
source $SHARE/templater/functions || exit 1
# Ikiwiki implementation
function templater_ikiwiki {
if [ ! -e "ikiwiki.yaml" ]; then
templater_echo "Setting up ikiwiki..."
#templater_checkout_develop
templater_copy_or_append ikiwiki .gitignore
#if [ ! -e "index.md" ]; then
# cp $SHARE/ikiwiki/files/index.md .
#fi
cp $SHARE/ikiwiki/files/index.md .
if [ ! -e "ikiwiki.yaml" ]; then
cp $SHARE/ikiwiki/files/ikiwiki.yaml.
fi
templater_install_makefile $SHARE/ikiwiki/files/Makefile.ikiwiki
if [ ! -d "templates" ]; then
cp -r $SHARE/ikiwiki/files/templates .
fi
if [ ! -d "bootstrap" ]; then
cp -r $SHARE/ikiwiki/files/bootstrap .
fi
#if [ -d ".git" ]; then
# git add .
# git commit -a -m "Static site generation support using ikiwiki"
#fi
else
templater_echo "Ikiwiki already set"
fi
}
# Dispatch
templater_ikiwiki
|