3 # Simple shell script to do all the steps that need doing
6 # if a parameter exists, that's where the website is copied after generation
9 DIRHTML=$(echo "$1"|sed 's/\/$//g'); #strips the trailing slash if need be
14 # Create required binaries
15 if [ ! -e "munge" ]; then
16 gcc munge.cpp -o munge -lstdc++ -g
19 # Create required symlink (this is temporary!)
20 if [ ! -e "include/_manual" ]; then
21 ln -s ../_manual/ include/_manual
24 # create the required folders if need be, or empties them
25 if [ ! -d "_site" ]; then
31 if [ ! -d "_manual.munge" ]; then
34 rm -rf _manual.munge/*
42 # if a target directory exists, copy the site there
43 if [ ! -z "$DIRHTML" ]
46 cp -R _site/* "$DIRHTML/"