How To Use Batch Files?

Discussion about everything. New games, 3d math, development tips...
Post Reply
JuppS
Posts: 4
Joined: Wed Dec 31, 2008 3:53 pm

How To Use Batch Files?

Post by JuppS »

hello,
I'm new to this forum and I browsed for some code snippets and such.
often I see such fancy batch files/code like this:

Code: Select all

Index: include/irrMap.h
===================================================================
--- include/irrMap.h   (revision 1444)
+++ include/irrMap.h   (working copy)
@@ -830,7 +830,10 @@
    {
       Root = newRoot;
       if (Root != 0)
+      {
          Root->setParent(0);
+         Root->setBlack(); // The root must always be black
+      }
    }
 
    //! Insert a node into the tree without using any fancy balancing logic.
but how do I use/make them?

TIA, Jupp
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

There's an explanation in the bugs forum and on my website. You see a 'patch file' or 'diff file', I guess google will also help tom understand what it does.
JuppS
Posts: 4
Joined: Wed Dec 31, 2008 3:53 pm

Post by JuppS »

Thank you Hybrid! :)
I searched and found the Patch.exe for Windows.

But I didn't find the diff (diff3, sdiff, ...) for Windows, it's all for Linux! :oops:
I only found sources like DiffUtil, but they are with this gnu project (?)
It seems I'll need this AutoConf tool for compiling which I also didn't find only the source which also needs the AutoConf for compiling...
well, this all is over my head and I don't want to make such trouble just for getting diff for Windows! :(

Is there any Windows version of diff avilable?

TIA, Jupp
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Download TortoiseSVN, it has a graphical interface for applying patch files and will allow you to get the latest bugfixed code from SVN. Also it will let you make patch files through the Windows shell, so you can also contribute your bugfixes :)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

bitplane wrote:Download TortoiseSVN, it has a graphical interface for applying patch files and will allow you to get the latest bugfixed code from SVN. Also it will let you make patch files through the Windows shell, so you can also contribute your bugfixes :)
REALY !?!?! :shock:
I thought also about using diff to make some of my Extensions avilable as patch files... ;)
But I have already TortoiseSVN and didn't know it can do it !!! :oops:
maybe I'll give it a try, too !!! :lol:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Acki wrote:
bitplane wrote:Download TortoiseSVN, it has a graphical interface for applying patch files and will allow you to get the latest bugfixed code from SVN. Also it will let you make patch files through the Windows shell, so you can also contribute your bugfixes :)
REALY !?!?! :shock:
I thought also about using diff to make some of my Extensions avilable as patch files... ;)
But I have already TortoiseSVN and didn't know it can do it !!! :oops:
maybe I'll give it a try, too !!! :lol:
I posted a step-by-step guide of how to use Tortoise to create a patch in the FAQ section. Two years ago! :shock:
JuppS
Posts: 4
Joined: Wed Dec 31, 2008 3:53 pm

Post by JuppS »

hmm, I don't use TortoiseSVN and I don't want to istal it just for creating patch files.
also it seems TortoiseSVN does this only with SVNs and not with my code(s) that are not SVNs.
and as I understand it diff will work on any code I feed it, right?

is there realy no Windows version of diff avilable out there? :shock:
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Post by rooly »

you could always get yourself some cygwin...but that may be a little over your head as well...google is your friend so i'm not gonna link you
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
Post Reply