From 910d9d060fc60b2b82f6a180d33b162d54519ccf Mon Sep 17 00:00:00 2001 From: dakkar Date: Mon, 17 Aug 2009 12:44:02 +0200 Subject: simple script to generate the site it also syncs the test Apache installation --- doit.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 doit.sh (limited to 'doit.sh') 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 + -- cgit v1.2.3