#! /bin/sh
# Generate diff of two GNU pascal source trees.
# Created by Jan-Jaap van der Heijden, 1996-10-06
# Last modified by Peter Gerwinski, 1998-11-06

if [ $# -ne 2 ]; then
        echo "Usage: `basename $0` [dir1] [dir2]" 1>&2
        exit 1
fi

echo "Changes for $2 from $1."
echo ""
echo "Changes in files you can reconstruct with Bison, etags, makeinfo,"
echo "and TeX have been omitted.  Some of these files are updated just by"
echo "building the compiler.  You can update the rest of these files by"
echo "executing this command"
echo ""
echo "   make TAGS info dvi -f Makefile.in"
echo ""
echo "in the directory of GPC sources, provided the necessary tools"
echo "(etags, makeinfo, TeX and texi2dvi) are installed."
echo ""
echo "To apply these diffs, go to the directory $1 and use the command"
echo ""
echo "    patch -p1"
echo ""
echo "feeding it the following diffs as input."
echo "Then rename the directory to $2."
echo ""
echo ""

exec diff -r -U3 -p -N -X $0.exclude $1/p $2/p
