blob: 71929e79e7410782c0b8882eff1d0b7b4dbecc95 (
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
|
#!/bin/bash
#
# Pelican templater module.
#
# Parameters
SHARE="$1"
# Include basic functions
source $SHARE/templater/functions || exit 1
# Pelican implementation
function templater_pelican {
if [ ! -e "pelicanconf.py" ]; then
__templater_echo "Setting up pelican..."
#__templater_checkout_develop
__templater_copy_or_append pelican .gitignore
cp $SHARE/sphinx/files/pelicanconf.py .
__templater_install_makefile $SHARE/pelican/files/Makefile.pelican
if [ ! -d "content" ]; then
cp -r $SHARE/pelican/files/content .
fi
else
__templater_echo "Pelican already set"
fi
}
# Dispatch
templater_pelican
|