summaryrefslogtreecommitdiff
path: root/doit.sh
blob: 1e2fbe6b4728dbeef215580fde8be768fd17c28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash 
 
if type webcoso.pl >/dev/null 2>&1; then
    command=webcoso.pl
else
    command="perl -I/home/dakkar/src/WebCoso/lib/ /home/dakkar/src/WebCoso/script/webcoso.pl"
fi
 
if ! $command -s src/ -d output -I templates/ "$@"; then
    echo "Something wrong: $!" >&2
    exit 1
fi
 
if [[ "$*" != '--clean' ]]; then
    rsync -r output/ /var/www/localhost/htdocs/
    rsync -r additions/ /var/www/localhost/htdocs/
fi