mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-29 08:56:15 +01:00
b6d8893eb7
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com> * glib/libcharset/* configure.in: Fix macros from libcharset to work with autoconf-2.5x. (From Laszlo Peter.)
28 lines
678 B
Bash
Executable File
28 lines
678 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test $# = 1 ; then
|
|
ORIGINAL=$1
|
|
else
|
|
echo "Usage: make-patch.sh /path/to/libcharset" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
if test -f $ORIGINAL/lib/localcharset.c ; then : ; else
|
|
echo "Usage: make-patch.sh /path/to/libcharset" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
VERSION=`grep VERSION= $ORIGINAL/configure.in | sed s/VERSION=//`
|
|
|
|
echo "# Patch against libcharset version $VERSION" > libcharset-glib.patch
|
|
|
|
for i in localcharset.c ref-add.sin ref-del.sin ; do
|
|
diff -u $ORIGINAL/lib/$i $i >> libcharset-glib.patch
|
|
done
|
|
|
|
for i in glibc21.m4 codeset.m4 ; do
|
|
diff -u $ORIGINAL/m4/$i $i >> libcharset-glib.patch
|
|
done
|
|
|
|
diff -u $ORIGINAL/include/libcharset.h.in libcharset.h >> libcharset-glib.patch
|