This file is indexed.

/usr/bin/schdiff is in geda-utils 1:1.8.2-5.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#! /bin/sh

usage ()
{
  cat <<EOF
Usage: schdiff old new

View a graphical diff of gEDA schematics using gschem and ImageMagick.

Usage with git:
  git difftool -x schdiff ...

Usage with Mercurial:
  Add the following to .hgrc:

    [extensions]
    hgext.extdiff =
    [extdiff]
    cmd.schdiff = /path/to/schdiff

  Then use: hg schdiff ...

Usage with Subversion:
  svn diff --diff-cmd schdiff

Report bugs to <http://bugs.launchpad.net/geda>
gEDA/gaf homepage <http://gpleda.org/>
EOF

}

for PROG in gschem composite display
do
  if which $PROG > /dev/null
  then 
    true
  else 
    echo "$PROG is not found.  Either it is not installed, or not in your PATH"
    exit 1
  fi
done

if test $# -lt 2
  then usage; exit 1
fi

#In case the script was invoked with extra option arguments, throw them away
shift `expr $# - 2`

if test -d $1 -o -d $2
  then echo "ERROR: schdiff cannot diff entire directories"
  exit 1
fi

LEFTFILE=$1
RIGHTFILE=$2

GEDASCHEMEDIR=share/gEDA/scheme
SCHEMEFILE=`dirname $0`/../${GEDASCHEMEDIR}/schdiff-image.scm
LEFTPNG=`mktemp --tmpdir schdiff.XXXXXXXXXX`
RIGHTPNG=`mktemp --tmpdir schdiff.XXXXXXXXXX`
DIFFPNG=`mktemp --tmpdir schdiff.XXXXXXXXXX`

gschem -p -o $LEFTPNG -q -c '(image-size 1344 1008) (image-color "disabled") (gschem-use-rc-values) (gschem-image "dummyfilename") (gschem-exit)' $LEFTFILE && \
gschem -p -o $RIGHTPNG -q -c '(image-size 1344 1008) (image-color "disabled") (gschem-use-rc-values) (gschem-image "dummyfilename") (gschem-exit)' $RIGHTFILE && \
composite -stereo 0 $LEFTPNG $RIGHTPNG $DIFFPNG && \
display $DIFFPNG
rm $LEFTPNG
rm $RIGHTPNG
rm $DIFFPNG