summaryrefslogtreecommitdiff
path: root/doit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doit.sh')
-rwxr-xr-xdoit.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/doit.sh b/doit.sh
new file mode 100755
index 0000000..b94d558
--- /dev/null
+++ b/doit.sh
@@ -0,0 +1,15 @@
+#!/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
+
+$command -s src/ -d output -I templates/ "$@"
+
+if [[ $! -eq 0 && -z "$*" ]]; then
+ rsync -r output/ /var/www/localhost/htdocs/
+ rsync -r additions/ /var/www/localhost/htdocs/
+fi
+