#!/bin/sh # Author: Quantroup cd "${0%/*}/.." PROJECTROOT=`pwd` echo "project dir= $PROJECTROOT" . ./build/config.sh.txt #the config file is just a shell script if [ "$#" -gt "0" ]; then case $1 in h | help) echo "- build.sh -" echo "A tool for building 'websites'" echo "Options available:" echo "h , help: lists this help" echo "setup: helps setup the default config." echo "build: build the website" ;; setup) ./build/setuphelper.sh.txt ;; build) echo "starting build..." . ./build/mkcontent.sh.txt echo "Build complete! (hopefully...)" ;; *) echo "Unkown option: ${1}. Use the help argument for help." ;; esac else echo "specify a option... use the help argument for help" fi