summaryrefslogtreecommitdiff
path: root/publish.sh
blob: 29ec0e44cfb11387588da8c23070816ba1876ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
PY=${PY:-python}
PELICAN=${PELICAN:-pelican}
PELICANOPTS=

BASEDIR=$(pwd)
INPUTDIR=$BASEDIR/content
OUTPUTDIR=$BASEDIR/output
CONFFILE=$BASEDIR/pelicanconf.py

set -e

$PELICAN $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS
./fix_images.sh

rsync -vaP output/* content.events.ccc.de:/usr/local/www/help.ccc.de/ --delete-after