summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Neumann <git_commits@linus-neumann.de>2018-11-07 16:00:39 +0100
committerLinus Neumann <git_commits@linus-neumann.de>2018-11-07 16:00:39 +0100
commit1acc5965e73df6f69141ee0669b5466680018cb8 (patch)
tree36121dbfda8a4abb455b4cacd845c1d396ad5650
parent953086df478ef9e9692312499ec255fcead0c40c (diff)
Add publish.sh
-rwxr-xr-xfix_images.sh2
-rw-r--r--pelicanconf.py2
-rwxr-xr-xpublish.sh16
3 files changed, 18 insertions, 2 deletions
diff --git a/fix_images.sh b/fix_images.sh
index 6f39843..8d03335 100755
--- a/fix_images.sh
+++ b/fix_images.sh
@@ -1,2 +1,2 @@
1#!/usr/bin/env bash 1#!/usr/bin/env bash
2rsync -vaP content/images/* output/images/ 2rsync -a content/images/* output/images/
diff --git a/pelicanconf.py b/pelicanconf.py
index 0290bb5..461baae 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -4,7 +4,7 @@ from __future__ import unicode_literals
4 4
5AUTHOR = u'Chaos Computer Club e.V.' 5AUTHOR = u'Chaos Computer Club e.V.'
6SITENAME = u'Support-Angebote' 6SITENAME = u'Support-Angebote'
7SITEURL = 'http://localhost:8000' 7# SITEURL = 'http://localhost:8000'
8 8
9TIMEZONE = 'Europe/Berlin' 9TIMEZONE = 'Europe/Berlin'
10 10
diff --git a/publish.sh b/publish.sh
new file mode 100755
index 0000000..29ec0e4
--- /dev/null
+++ b/publish.sh
@@ -0,0 +1,16 @@
1#!/usr/bin/env bash
2PY=${PY:-python}
3PELICAN=${PELICAN:-pelican}
4PELICANOPTS=
5
6BASEDIR=$(pwd)
7INPUTDIR=$BASEDIR/content
8OUTPUTDIR=$BASEDIR/output
9CONFFILE=$BASEDIR/pelicanconf.py
10
11set -e
12
13$PELICAN $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS
14./fix_images.sh
15
16rsync -vaP output/* content.events.ccc.de:/usr/local/www/help.ccc.de/ --delete-after