Raised This Month: $ Target: $400
 0% 

Compile to plugins directory.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rompom7
Senior Member
Join Date: May 2004
Old 06-12-2004 , 08:55   Compile to plugins directory.
Reply With Quote #1

I made this while I was bored. It compiles the plugins to the plugins directory, and dumps a text with all the compile errors. So you don't have to keep the command window open.

Code:
@echo off
:: AMX-X Compile batch to plugins folder
:: By James Romeril
:: This file comes with no warranty

if exist Latest_Compile_Summary.txt del Latest_Compile_Summary.txt
if exist temp.txt del temp.txt
if exist temp2.txt del temp2.txt
if exist Myfile.tmp del Myfile.tmp

echo ()=============================================================()
echo []Compiling, Please Wait...                                    []

for %%i in (*.sma) do sc %%i -o..\plugins\%%i>> Latest_Compile_Summary.txt

echo []Compiling finished. Copying files...                         []

Find /V "Small compiler 2.1.0		Copyright (c) 1997-2002, ITB CompuPhase" < Latest_Compile_Summary.txt > Myfile.tmp
Copy Myfile.tmp Latest_Compile_Summary.txt>>temp2.txt
if exist Myfile.tmp del Myfile.tmp>>temp2.txt

copy ..\plugins\*.sma ..\plugins\*.amx >> temp.txt
del ..\plugins\*.sma
::cls

echo []Copied and Compiled the following files: -                   []
echo ()=============================================================()
type temp.txt
del temp.txt
del temp2.txt
echo ()=============================================================()
echo []Please read Latest Compile Summary.txt for debug information.[]
echo ()=============================================================()
pause
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode