Page 1 of 1

How To Use Batch Files?

Posted: Wed Dec 31, 2008 4:00 pm
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

Posted: Wed Dec 31, 2008 4:18 pm
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.

Posted: Thu Jan 01, 2009 2:16 pm
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

Posted: Thu Jan 01, 2009 2:21 pm
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 :)

Posted: Thu Jan 01, 2009 4:12 pm
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:

Posted: Thu Jan 01, 2009 5:20 pm
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:

Posted: Sat Jan 03, 2009 12:47 am
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:

Posted: Sat Jan 03, 2009 4:12 am
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