diff options
-rwxr-xr-x | doit.sh | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 + |