Raised This Month: $ Target: $400
 0% 

better compile.bat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
megamandos
Member
Join Date: Apr 2004
Old 04-25-2004 , 17:47   better compile.bat
Reply With Quote #1

ok you can call me lazy if you want but i got tired of manualy copying my compiled *.AMXs to my amxx/plugins folder from my amxx/scripting folder so i did a bit of batch code editing and just threw in a line to do this step for me!

Code:
@echo off
rem AMX Mod X
rem
rem by the AMX Mod X Development Team
rem  originally developed by OLO
rem
rem This file is part of AMX Mod X.


if not exist compiled mkdir compiled
if exist temp.txt del temp.txt
for %%i in (*.sma) do sc %%i -ocompiled\%%i >> temp.txt
copy compiled\*.sma compiled\*.amx
copy compiled\*.sma ..\plugins\*.amx
del compiled\*.sma
type temp.txt
del temp.txt

pause
Attached Files
File Type: zip compile.zip (333 Bytes, 202 views)
__________________
This world is severly lacking of good people. Im just here to balance it out ;)

megamandos is offline
Send a message via ICQ to megamandos Send a message via AIM to megamandos
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 04-25-2004 , 21:44  
Reply With Quote #2

You think thats good? Watch this:
Quote:
for %%i in (*.sma) do sc %%i -o..\plugins\%%i

pause
That does everything yours does
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 04-25-2004 , 22:24  
Reply With Quote #3

His keeps a copy in \compiled as well, so if you needed to look at the .amx for one reason or anther, you didn't have to back up and move to plugins to find it
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-26-2004 , 00:06  
Reply With Quote #4

bat scripting wars
__________________
QwertyAccess is offline
megamandos
Member
Join Date: Apr 2004
Old 04-26-2004 , 11:47  
Reply With Quote #5

lol i didnt expect to start a war here i just wanted to put up my bat and beat your asses hands down... lol im jking hahahaha
__________________
This world is severly lacking of good people. Im just here to balance it out ;)

megamandos is offline
Send a message via ICQ to megamandos Send a message via AIM to megamandos
Reply


Thread Tools
Display Modes

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 10:59.


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