New compile.bat
1 Attachment(s)
Do you think it is annoying that compile.bat always recompiles all the plugins in the folder? I also do, so here is a solution:
:D :D :D PM's 1337 compile.bat :D :D :D The main advantages are: - It only recompiles plugins that are new in the scripting folder or were changed - In the end, it gives you a nice report about the compilation - *NEW* You can use any compiler you want Updating from version1: Just download the new compile.zip, unzip it into your scripting folder (or whatever), and run it. It will do all neccessary steps on its own! Changelog: Code:
Version3: Code:
/H Code:
Parameter /Q [optional: filename] Have fun! |
sweet, gonna try this baby out
----- Do I have to do something special to make it work??? Code:
The system cannot find the file specified. |
Nice idea! I did something a little easier. I put all the sma files into a directory called sma. Then when I want to compile a script its the only one in the compile directory.
|
I might change my script to use the compiled .amx files as compile time indicators instead of using hidden 0pluginname.sma.cbtmi files. That would be better, but harder to implement :)
|
Its not working for me..... is there something special that needs to be done? See my post above for the error I am getting.
|
PM, plz do i don't like hidden files. I always show all files on (not OS files of course) and i don't like seeing files hidden in a folder i'm trying to keep clean
|
Very nice PM, works well.
To get around the 0pluginname.sma.cbtmi files in the scripting directory cound you put them in another directory eg. scripting\cbtmi that would keep the scripting directory clean. anyway thumbs up on a good job. :up: |
ok I got it to work, for some reaosn it wont work if I rename it.
Also, I don't like the hidden files because I also have the showing of hidden files ON so I see them all :/ Makes it cluttered. |
If you look at the batch file source, you can see that it is hacky enough :=
But I'll try to hack it more so that it can handle the .amx files. The problem is: a) Another directory b) Another extension (debug.exe hacking probably) |
can you just make it write the .cbtmi into another directory?
eg \addons\amxx\scripting\check instead of just \addons\amxx\scripting something like this. IF "%cbnewest%"=="check\0%1.cbtmi" that way the hidden files wouldn't be in the scripting directory. just an ideal. or maybe if you have the compile.bat in another directory and just a shortcut to it in the scripting directory. or or :idea: :idea: hang testing this out. here you go, this should work. if you add these lines to the compile.bat file. to the very top move check\*.cbtmi cls eg Code:
if not exist check mkdir check attrib -h *.cbtmi move *.cbtmi check [/small] eg Code:
not really a fix but a work around :wink: |
All times are GMT -4. The time now is 08:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.