something else i developed:
#!/bin/sh
cd temp0
for i in *.ncs
do
for j in *.ncs
do
[ "$i" = "$j" ] && continue;
DIFF=`diff $i $j`
if [ -z "$DIFF" ]
then
echo $DIFF > /tmp/foo/$i-$j.txt
fi
done
done
a shell script to compare the compiled scripts and print out a list of files that are the same. it skips comparing the file to itself, but it's not smart enough to skip comparing a -> b and b -> a.
i started out comparing the source scripts, but it wasn't robust enough. it would flag files as being different if there were extra new lines or comments. the compiled scripts strip all of that out. the downside is that include files are all the same (since "nothing" is compiled into them). this, however, gives fewer false positives than the other way was giving false negatives.
this script (with some very minor modifications) works just fine with dialogs and i presume some other file types.