Fix macros from libcharset to work with autoconf-2.5x. (From Laszlo
[platform/upstream/glib.git] / glib / libcharset / update.sh
1 #!/bin/sh
2
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
9
10 if test -f $ORIGINAL/lib/localcharset.c ; then : ; else
11   echo "Usage: update.sh /path/to/libcharset" 1>&2
12   exit 1
13 fi
14
15 VERSION=`grep VERSION= $ORIGINAL/configure.in | sed s/VERSION=//`
16
17 for i in localcharset.c ref-add.sin ref-del.sin config.charset ; do
18   cp $ORIGINAL/lib/$i .
19 done
20
21 cp $ORIGINAL/include/libcharset.h.in ./libcharset.h
22
23 for i in codeset.m4 glibc21.m4 ; do
24   cp $ORIGINAL/m4/$i .
25 done
26
27 patch -p0 < libcharset-glib.patch
28
29 echo "dnl From libcharset $VERSION" > ../../aclibcharset.m4
30
31