If you do have (a) content pages (b) the mksite.sh script (c) the sitefile - then simply run the script. Provide the sitefile as the only arugment to the script.
sh mksite.sh site.htm
sed -f page.html~head~ site.htm >page.html sed -f page.html~body~ page.htm >>page.html