2001-09-27 04:49:05 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test $# = 1 ; then
|
|
|
|
ORIGINAL=$1
|
|
|
|
else
|
|
|
|
echo "Usage: update.sh /path/to/libcharset" 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-02-25 12:47:46 +01:00
|
|
|
if test -f "${ORIGINAL}/lib/localcharset.c" ; then : ; else
|
2001-09-27 04:49:05 +02:00
|
|
|
echo "Usage: update.sh /path/to/libcharset" 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-02-25 12:47:46 +01:00
|
|
|
VERSION=$(grep VERSION= "${ORIGINAL}/configure.ac" | sed s/VERSION=//)
|
2001-09-27 04:49:05 +02:00
|
|
|
|
|
|
|
for i in localcharset.c ref-add.sin ref-del.sin config.charset ; do
|
2020-02-25 12:47:46 +01:00
|
|
|
cp "${ORIGINAL}/lib/${i}" .
|
2001-09-27 04:49:05 +02:00
|
|
|
done
|
|
|
|
|
2008-05-21 00:49:16 +02:00
|
|
|
for i in libcharset.h localcharset.h ; do
|
2020-02-25 12:47:46 +01:00
|
|
|
cp "${ORIGINAL}/include/${i}.in" "./${i}"
|
2008-05-21 00:49:16 +02:00
|
|
|
done
|
2001-09-27 04:49:05 +02:00
|
|
|
|
2001-09-29 01:44:46 +02:00
|
|
|
for i in codeset.m4 glibc21.m4 ; do
|
2020-02-25 12:47:46 +01:00
|
|
|
cp "${ORIGINAL}/m4/${i}" .
|
2001-09-29 01:44:46 +02:00
|
|
|
done
|
|
|
|
|
2001-09-27 04:49:05 +02:00
|
|
|
patch -p0 < libcharset-glib.patch
|
|
|
|
|
2020-02-25 12:47:46 +01:00
|
|
|
echo "dnl From libcharset ${VERSION}" > ../../aclibcharset.m4
|
2001-09-27 04:49:05 +02:00
|
|
|
|
|
|
|
|