summaryrefslogtreecommitdiff
path: root/doit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doit.sh')
-rwxr-xr-xdoit.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/doit.sh b/doit.sh
index d7ae2df..13722aa 100755
--- a/doit.sh
+++ b/doit.sh
@@ -6,15 +6,24 @@ else
command="perl -I/home/dakkar/src/WebCoso/lib/ /home/dakkar/src/WebCoso/script/webcoso.pl"
fi
+if [[ "$*" = '--send' ]]; then
+ do_send=1
+ shift
+fi
+
if ! $command -s src/ -d output -I templates/ "$@"; then
- echo "Something wrong: $!" >&2
+ echo "Something wrong: $?" >&2
exit 1
fi
-if [[ "$*" != '--clean' ]]; then
+if [[ "$*" = '--clean' ]]; then
+ rm -rf /var/www/localhost/htdocs/*
+else
rsync -r output/ /var/www/localhost/htdocs/
rsync -r additions/ /var/www/localhost/htdocs/
rsync /usr/share/doc/docutils-*/html/html4css1.css /var/www/localhost/htdocs/
fi
-
+if [[ "$do_send" = '1' ]]; then
+ rsync -rv /var/www/localhost/htdocs/ luxion:/var/www/thenautilus/htdocs/
+fi