blob: abf106afb50a6d4fd290787b8cdb87addcfe8f4c (
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
|