summaryrefslogtreecommitdiff
path: root/publish.sh
blob: 5fbc75d33a93a8355df82025289744c08aa0518e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
source ~/.virtualenvs/pelican3.5/bin/activate
cd ~/pelican/
make publish

find output -name '*.html' -print0 | xargs -0 grep "{filename}"
if [ $? -eq 0 ]; then
    echo Lien cassé dans les fichiers listés ci dessus.
    exit 1
fi

rsync -ra --del -e ssh output/ goku:/home/www/blog-chimrod/
rsync -ra --del -e ssh output/ vps71296:/srv/apache/blog-chimrod/