Ticket #305: rebuild-docs-website.sh

File rebuild-docs-website.sh, 396 bytes (added by Infinoid, 6 years ago)

Cron job for generating docs.parrot.org content (recommend running once an hour)

Line 
1#!/bin/sh
2
3WEBROOT=/tmp/whatever/docs.parrot.org/
4PARROT=~/parrot-svn
5
6
7(
8        cd $PARROT
9        # clean up after the previous run
10        make realclean 2>/dev/null
11        # *really* clean up (we do break realclean from time to time)
12        svn revert -R .
13        svn st --no-ignore | cut -c 8- | xargs rm -rf
14
15        set -e
16        svn update
17        perl Configure.pl
18        make html
19
20        rsync -aq --delete --delete-after docs/html $WEBROOT/
21) >/dev/null