1
Fork 0
mirror of https://github.com/RGBCube/GCCPreprocessHTML synced 2025-05-28 11:05:09 +00:00
GCCPreprocessHTML/build.sh
2023-05-07 00:42:14 +03:00

12 lines
191 B
Bash
Executable file

#!/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