diff options
author | dakkar <dakkar@thenautilus.net> | 2009-08-17 12:44:02 +0200 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2009-08-17 12:44:02 +0200 |
commit | 910d9d060fc60b2b82f6a180d33b162d54519ccf (patch) | |
tree | 2b7b03ed2b2862f0cd6eea6ad735ed146d23cfa0 | |
parent | template clean-up (diff) | |
download | thenautilus-910d9d060fc60b2b82f6a180d33b162d54519ccf.tar.gz thenautilus-910d9d060fc60b2b82f6a180d33b162d54519ccf.tar.bz2 thenautilus-910d9d060fc60b2b82f6a180d33b162d54519ccf.zip |
simple script to generate the site
it also syncs the test Apache installation
-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 + |