From e01ef5d8ecb9d52aa2313696a0cca60a8190d77a Mon Sep 17 00:00:00 2001 From: 6arelyFuture Date: Tue, 11 Jun 2024 09:04:35 +0000 Subject: [PATCH] build: better folder setup --- .gitea/scripts/ci.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/scripts/ci.sh b/.gitea/scripts/ci.sh index 90ca6f2..def05c7 100755 --- a/.gitea/scripts/ci.sh +++ b/.gitea/scripts/ci.sh @@ -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"