22 lines
446 B
Bash
Executable File
22 lines
446 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# setup
|
|
mkdir build
|
|
cd build
|
|
mkdir iw4
|
|
mkdir iw5
|
|
cd ..
|
|
|
|
cp iw4/scripts/mp/_jump.gsc build/iw4
|
|
|
|
# replace gsc extension with cpp so GCC is happy
|
|
mv iw5/scripts/mp/_jump.gsc iw5/scripts/mp/_jump.cpp
|
|
|
|
# perform macro expansion
|
|
g++ -std=c++20 -D_UTILITY_DEBUG -DIW5 -DCI -E "iw5/scripts/mp/_jump.cpp" -o _jump.in
|
|
|
|
# remove things gcc added to the file
|
|
python3 .gitea/scripts/clean.py _jump.in _jump.gsc
|
|
|
|
mv _jump.gsc build/iw5/_jump.gsc
|