diff --git a/Website/generate.sh b/Website/generate.sh index 8a189d2..4b15157 100755 --- a/Website/generate.sh +++ b/Website/generate.sh @@ -8,6 +8,12 @@ CLEAN_MODE=1 echo "Cleaning..." rm *~ +else + mkdir -p "$DEST_DIR" + cp -Ra images "$DEST_DIR" + cp -Ra fonts "$DEST_DIR" + cp -Ra externals "$DEST_DIR" + chmod 664 "$DEST_DIR"/externals/* fi ApplyTemplates() @@ -17,7 +23,6 @@ PAGE_BASENAME="$3" if [ "$CLEAN_MODE" != "1" ] then - mkdir -p "$DEST_DIR" # This next command makes it possible for variable expansion to happen when applying the header echo `eval $'cat <<\002\n'"$( "$DEST_DIR/$PAGE_BASENAME.html" # The way this does the echo of the cat command causes the white space to be removed