mirror of
https://github.com/RGBCube/GCCPreprocessHTML
synced 2025-05-17 06:05:08 +00:00
Scripts: Fix build script
This commit is contained in:
parent
75db7e150e
commit
e48a14f103
1 changed files with 12 additions and 1 deletions
13
build.sh
Normal file → Executable file
13
build.sh
Normal file → Executable 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue