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