mirror of
https://github.com/RGBCube/GCCPreprocessHTML
synced 2025-05-28 11:05:09 +00:00
12 lines
191 B
Bash
Executable file
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
|