Initial commit
[platform/upstream/glib2.0.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.ac | 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 for i in libcharset.h localcharset.h ; do
22   cp $ORIGINAL/include/$i.in ./$i
23 done
24
25 for i in codeset.m4 glibc21.m4 ; do
26   cp $ORIGINAL/m4/$i .
27 done
28
29 patch -p0 < libcharset-glib.patch
30
31 echo "dnl From libcharset $VERSION" > ../../aclibcharset.m4
32
33