build: better folder setup
All checks were successful
Build / build-linux (push) Successful in 8s

This commit is contained in:
6arelyFuture 2024-06-11 09:04:35 +00:00
parent 30b9aa132f
commit e01ef5d8ec

View File

@ -9,6 +9,10 @@ mkdir iw4
mkdir iw5
cd iw5
mkdir mp
mkdir scripts
cd scripts
mkdir mp
cd ..
cd ..
cd ..
@ -19,14 +23,14 @@ echo "Created release for IW4"
# replace gsc extension with c. It will make gcc very happy
mv iw5/scripts/mp/_jump.gsc iw5/scripts/mp/_jump.c
# perform macro expansion
# perform macro expansion (.in extension is from a Stack Overflow post)
gcc -D_UTILITY_DEBUG -DIW5 -DCI -E "iw5/scripts/mp/_jump.c" -o _jump.in
# remove things gcc added to the file that we do not need
python3 .gitea/scripts/clean.py _jump.in _jump.gsc
# ready for release
mv _jump.gsc build/iw5/_jump.gsc
mv _jump.gsc build/iw5/scripts/mp/_jump.gsc
cp iw5/mp/perkTable.csv build/iw5/mp
echo "Created release for IW5"