Quote:
Originally Posted by aexi0n
Finally no more "YourPlugin.sp is already compiled."
|
You're welcome! That shit was annoying, so I had to script it.
Quote:
Originally Posted by Powerlord
I think Bacardi might have had a guide similar to this one somewhere in the SourcePawn Syntax Highlighting for Notepad++ thread. Wherever that thread went.
|
He does. That is where I originally got mine, actually, which matched the OP code. Then, I tweaked it to do a bit more.
EDIT: Here is my modified script, tweaking it a little based on KissLick's code so that it compiles from any location.
Code:
set COMPILER = C:\path_to_my_compiler\spcomp.exe
set COMPILE_FOLDER = C:\some_destination_folder\compiled
NPP_SAVE
cd "$(CURRENT_DIRECTORY)"
cmd /q /c del /q "$(CURRENT_DIRECTORY)\$(NAME_PART).smx"
cmd /q /c del /q "$(COMPILE_FOLDER)\$(NAME_PART).smx"
$(COMPILER) "$(FULL_CURRENT_PATH)" -o"$(CURRENT_DIRECTORY)\$(NAME_PART).smx"
cmd /q /c copy "$(FULL_CURRENT_PATH)" "$(COMPILE_FOLDER)\$(NAME_PART).smx"
Explanation of components for your own tweaking:
__________________