Initial release, version 0.0.0.
[gsasl.git] / src / libcharset / make-patch.sh
blob80ea5074d621ad7e990611d8139d37d0c692fd5d
1 #!/bin/sh
3 if test $# = 1 ; then
4 ORIGINAL=$1
5 else
6 echo "Usage: make-patch.sh /path/to/libcharset" 1>&2
7 exit 1
8 fi
10 if test -f $ORIGINAL/lib/localcharset.c ; then : ; else
11 echo "Usage: make-patch.sh /path/to/libcharset" 1>&2
12 exit 1
15 VERSION=`grep VERSION= $ORIGINAL/configure.in | sed s/VERSION=//`
17 echo "# Patch against libcharset version $VERSION" > libcharset-gsasl.patch
19 for i in localcharset.c ref-add.sin ref-del.sin ; do
20 diff -u $ORIGINAL/lib/$i $i >> libcharset-gsasl.patch
21 done
23 diff -u $ORIGINAL/include/libcharset.h.in libcharset.h >> libcharset-gsasl.patch