File: diff.bat

package info (click to toggle)
cccc 3.pre84-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 3,816 kB
  • ctags: 4,969
  • sloc: ansic: 33,244; cpp: 10,694; java: 622; makefile: 164; sh: 11
file content (19 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@echo off
rem DIFF.BAT
rem This script should simulate the behaviour of Unix diff.
rem As it stands it simply uses the FC.EXE command which 
rem is part of DOS.  This does not give a useful return 
rem value, so the tester must visually check the output
rem to ensure that the test did pass, even though NMAKE thought
rem it did.

if not "%2" == "" goto AfterUsage
:usage
echo DIFF [file1] [file2]
goto :end
:afterUsage

fc %1 %2 
:end