8 View a graphical diff of gEDA schematics using gschem and ImageMagick.
11 git difftool -x schdiff ...
14 Add the following to .hgrc:
19 cmd.schdiff = /path/to/schdiff
21 Then use: hg schdiff ...
23 Usage with Subversion:
24 svn diff --diff-cmd schdiff
26 Report bugs to <http://bugs.launchpad.net/geda>
27 gEDA/gaf homepage <http://www.geda-project.org/>
32 for PROG
in gschem composite display
34 if which $PROG > /dev
/null
38 echo "$PROG is not found. Either it is not installed, or not in your PATH"
47 #In case the script was invoked with extra option arguments, throw them away
50 if test -d $1 -o -d $2
51 then echo "ERROR: schdiff cannot diff entire directories"
58 GEDASCHEMEDIR
=share
/gEDA
/scheme
59 SCHEMEFILE
=`dirname $0`/..
/${GEDASCHEMEDIR}/schdiff-image.scm
60 LEFTPNG
=`mktemp --tmpdir schdiff.XXXXXXXXXX`
61 RIGHTPNG
=`mktemp --tmpdir schdiff.XXXXXXXXXX`
62 DIFFPNG
=`mktemp --tmpdir schdiff.XXXXXXXXXX`
64 gschem
-p -o $LEFTPNG -q -c '(image-size 1344 1008) (image-color "disabled") (gschem-use-rc-values) (gschem-image "dummyfilename") (gschem-exit)' $LEFTFILE && \
65 gschem
-p -o $RIGHTPNG -q -c '(image-size 1344 1008) (image-color "disabled") (gschem-use-rc-values) (gschem-image "dummyfilename") (gschem-exit)' $RIGHTFILE && \
66 composite
-stereo 0 $LEFTPNG $RIGHTPNG $DIFFPNG && \