build: Enable -fno-strict-aliasing
[glib.git] / glib / libcharset / update.sh
blob5873fc76817796990bfffd8e6f7a12665e8df59e
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.ac | 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 for i in libcharset.h localcharset.h ; do
22 cp $ORIGINAL/include/$i.in ./$i
23 done
25 for i in codeset.m4 glibc21.m4 ; do
26 cp $ORIGINAL/m4/$i .
27 done
29 patch -p0 < libcharset-glib.patch
31 echo "dnl From libcharset $VERSION" > ../../aclibcharset.m4