summaryrefslogtreecommitdiff
path: root/doit.sh
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2009-08-17 12:44:02 +0200
committerdakkar <dakkar@thenautilus.net>2009-08-17 12:44:02 +0200
commit910d9d060fc60b2b82f6a180d33b162d54519ccf (patch)
tree2b7b03ed2b2862f0cd6eea6ad735ed146d23cfa0 /doit.sh
parenttemplate clean-up (diff)
downloadthenautilus-910d9d060fc60b2b82f6a180d33b162d54519ccf.tar.gz
thenautilus-910d9d060fc60b2b82f6a180d33b162d54519ccf.tar.bz2
thenautilus-910d9d060fc60b2b82f6a180d33b162d54519ccf.zip
simple script to generate the site
it also syncs the test Apache installation
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
+