Update build_editor.sh, build_game.sh and make_mapdef.sh to generate
individual eclass .def files for Radiant
This commit is contained in:
parent
0867c17211
commit
568121d05f
3 changed files with 10 additions and 15 deletions
|
@ -171,13 +171,3 @@ mv_wsfile WorldSpawn_MINOR
|
||||||
mv_wsfile WorldSpawn_PATCH
|
mv_wsfile WorldSpawn_PATCH
|
||||||
mv_wsfile worldspawn
|
mv_wsfile worldspawn
|
||||||
mv_wsfile vmap
|
mv_wsfile vmap
|
||||||
|
|
||||||
cd ../../
|
|
||||||
./make_mapdef.sh valve
|
|
||||||
./make_mapdef.sh cstrike
|
|
||||||
./make_mapdef.sh gearbox
|
|
||||||
./make_mapdef.sh hunger
|
|
||||||
./make_mapdef.sh poke646
|
|
||||||
./make_mapdef.sh rewolf
|
|
||||||
./make_mapdef.sh scihunt
|
|
||||||
./make_mapdef.sh tfc
|
|
||||||
|
|
|
@ -8,7 +8,10 @@ if [ -f "$SCRPATH"/bin/fteqcc ]; then
|
||||||
find "$SCRPATH" -name Makefile | grep 'src\/Makefile' | grep -v engine | while read MFILE_N; do
|
find "$SCRPATH" -name Makefile | grep 'src\/Makefile' | grep -v engine | while read MFILE_N; do
|
||||||
cd $(dirname $MFILE_N)
|
cd $(dirname $MFILE_N)
|
||||||
make
|
make
|
||||||
|
cd ..
|
||||||
|
export GAMEDIR=$(basename $PWD)
|
||||||
cd $OLDDIR
|
cd $OLDDIR
|
||||||
|
./make_mapdef.sh $GAMEDIR
|
||||||
done;
|
done;
|
||||||
else
|
else
|
||||||
printf "FTEQCC compiler is not present, please run build_engine.sh\n"
|
printf "FTEQCC compiler is not present, please run build_engine.sh\n"
|
||||||
|
|
|
@ -2,20 +2,22 @@
|
||||||
|
|
||||||
ent_for_mod()
|
ent_for_mod()
|
||||||
{
|
{
|
||||||
mkdir -p ./bin/$1.game/$1/
|
mkdir -p ./bin/platform.game/$1/
|
||||||
ENT_OUTFILE="./bin/$1.game/$1/entities.def"
|
ENT_OUTFILE="./bin/platform.game/$1/entities.def"
|
||||||
rm "$ENT_OUTFILE"
|
rm "$ENT_OUTFILE"
|
||||||
|
|
||||||
find ./$1/src/ -type f \( -iname \*.cpp -o -iname \*.c \) | while read EDEF_N; do
|
find ./$1/src/ -type f \( -iname \*.qc \) | while read EDEF_N; do
|
||||||
echo "Scanning for definitions inside $EDEF_N"
|
echo "Scanning for definitions inside $EDEF_N"
|
||||||
sed -n '/\/*QUAKED/,/*\//p' $EDEF_N >> "$ENT_OUTFILE"
|
sed -n '/\/*QUAKED/,/*\//p' $EDEF_N >> "$ENT_OUTFILE"
|
||||||
done;
|
done;
|
||||||
|
|
||||||
|
cat ./bin/platform.game/platform/entities.def >> $ENT_OUTFILE
|
||||||
}
|
}
|
||||||
|
|
||||||
BASE_ENT=./bin/platform.game/platform/entities_base.def
|
BASE_ENT=./bin/platform.game/platform/entities.def
|
||||||
rm "$BASE_ENT"
|
rm "$BASE_ENT"
|
||||||
|
|
||||||
find ./src/gs-entbase/ -type f \( -iname \*.cpp -o -iname \*.c \) | while read EDEF_N; do
|
find ./src/gs-entbase/ -type f \( -iname \*.qc \) | while read EDEF_N; do
|
||||||
echo "Scanning for definitions inside $EDEF_N"
|
echo "Scanning for definitions inside $EDEF_N"
|
||||||
sed -n '/\/*QUAKED/,/*\//p' $EDEF_N >> "$BASE_ENT"
|
sed -n '/\/*QUAKED/,/*\//p' $EDEF_N >> "$BASE_ENT"
|
||||||
done;
|
done;
|
||||||
|
|
Loading…
Reference in a new issue