annotate kdiff3/windows_installer/diff3_cmd.bat @ 113:7bca1f1340f6 tip

Build fixes for Xcode 10 / Qt 5.12
author Chris Cannam
date Mon, 17 Dec 2018 11:13:01 +0000
parents 08ea9b86c12c
children
rev   line source
joachim99@75 1 @ECHO OFF
joachim99@75 2
joachim99@75 3 REM In file "c:\Documents and Settings\<username>\Application
joachim99@75 4 REM Data\Subversion\config" you can change that behavior by
joachim99@75 5 REM modifying "diff3-cmd" line to call KDiff3 instead of
joachim99@75 6 REM automatic merge. Well, you need a batch file actually (based on
joachim99@75 7 REM http://svn.collab.net/repos/svn/trunk/contrib/client-side/diff3wrap.bat):
joachim99@75 8
joachim99@75 9 REM Configure your favorite diff3/merge program here.
joachim99@75 10 SET DIFF3="C:\Program Files\KDiff3\kdiff3.exe"
joachim99@75 11
joachim99@75 12 REM Subversion provides the paths we need as the ninth, tenth, and eleventh
joachim99@75 13 REM parameters. But we only have access to nine parameters at a time, so we
joachim99@75 14 REM shift our nine-parameter window twice to let us get to what we need.
joachim99@75 15 SHIFT
joachim99@75 16 SHIFT
joachim99@75 17 SET MINE=%7
joachim99@75 18 SET OLDER=%8
joachim99@75 19 SET YOURS=%9
joachim99@75 20
joachim99@75 21 REM Call the merge command (change the following line to make sense for
joachim99@75 22 REM your merge program).
joachim99@75 23 %DIFF3% %OLDER% %MINE% %YOURS% -o merged.txt
joachim99@75 24
joachim99@75 25 REM After performing the merge, this script needs to print the contents
joachim99@75 26 REM of the merged file to stdout. Do that in whatever way you see fit.
joachim99@75 27 REM Return an errorcode of 0 on successful merge, 1 if unresolved conflicts
joachim99@75 28 REM remain in the result. Any other errorcode will be treated as fatal.
joachim99@75 29
joachim99@75 30 type merged.txt
joachim99@75 31
joachim99@75 32 del merged.txt