Skip to content

Commit

Permalink
fixup an oopsie with .sp.smx files
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphonie authored Aug 18, 2022
1 parent 7c3ff78 commit 312f3c9
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/nv_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ versvers=$(spcomp64 -v | grep "Compiler" --color=never | cut -d " " -f 3)


nv_plugs=("nativevotes")
nv_plugs+=("nativevotes.sp")
nv_plugs+=("nativevotes-basecommands.sp")
nv_plugs+=("nativevotes_mapchooser.sp")
nv_plugs+=("nativevotes_nominations.sp")
nv_plugs+=("nativevotes_rockthevote.sp")

nv_plugins_disabled=("nativevotes_votetest.sp")
nv_plugins_disabled+=("nativevotes_votemanager_test.sp")
nv_plugins_disabled+=("csgo_votestart_test.sp")
nv_plugins_disabled+=("votedelay_changelevel.sp")
nv_plugins_disabled+=("votediagnostics.sp")
nv_plugins_disabled+=("votefailed.sp")
nv_plugs+=("nativevotes-basecommands")
nv_plugs+=("nativevotes_mapchooser")
nv_plugs+=("nativevotes_nominations")
nv_plugs+=("nativevotes_rockthevote")

nv_plugins_disabled=("nativevotes_votetest")
nv_plugins_disabled+=("nativevotes_votemanager_test")
nv_plugins_disabled+=("csgo_votestart_test")
nv_plugins_disabled+=("votedelay_changelevel")
nv_plugins_disabled+=("votediagnostics")
nv_plugins_disabled+=("votefailed")

# we start in git root
pushd ./addons/sourcemod/scripting
Expand All @@ -25,11 +24,11 @@ mkdir ../plugins/disabled -p || true


for target in "${nv_plugs[@]}"; do
spcomp64 -i"./include/" "${target}" -o ../plugins/"${target}".smx || exit 1
spcomp64 -i"./include/" "${target}".sp -o ../plugins/"${target}".smx || exit 1
done

for target in "${nv_plugins_disabled[@]}"; do
spcomp64 -i"./include/" "${target}" -o ../plugins/disabled/"${target}".smx || exit 1
spcomp64 -i"./include/" "${target}".sp -o ../plugins/disabled/"${target}".smx || exit 1
done

popd
Expand Down

0 comments on commit 312f3c9

Please sign in to comment.