1
Fork 0
mirror of https://github.com/RGBCube/GCCPreprocessHTML synced 2025-05-16 13:54:59 +00:00

Scripts: Fix build script

This commit is contained in:
RGBCube 2023-05-07 00:42:14 +03:00
parent 75db7e150e
commit e48a14f103

13
build.sh Normal file → Executable file
View file

@ -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