diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 13d8196..2bda9a0 --- a/build.sh +++ b/build.sh @@ -1 +1,12 @@ -#!/usr/bin/sh +#!/bin/sh + +function process { + cc -E - < "$1" +} + +rm -rf ./build +mkdir ./build + +for html_file in $(find -name "*.html"); do + sed "/^#/d" <(process $html_file) > ./build/${html_file#./} +done