File: do-diff

package info (click to toggle)
fwbuilder 5.3.7-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 43,112 kB
  • sloc: cpp: 193,089; sh: 71,239; ansic: 4,343; xml: 3,963; python: 83; makefile: 76; perl: 49
file content (15 lines) | stat: -rwxr-xr-x 223 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

N=$1

if which opendiff > /dev/null 2>&1; then
  TOOL="opendiff"
elif which tkdiff > /dev/null 2>&1; then
  TOOL="tkdiff -b -B "
else
  TOOL="diff -U 8 -b -B "
fi

${TOOL} firewall${N}.fw.orig firewall${N}.fw