File: update.sh

package info (click to toggle)
glib2.0 2.58.3-2%2Bdeb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports
  • size: 48,956 kB
  • sloc: ansic: 452,656; xml: 16,781; python: 6,149; makefile: 3,776; sh: 1,499; perl: 1,140; cpp: 9
file content (33 lines) | stat: -rwxr-xr-x 646 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

if test $# = 1 ; then 
  ORIGINAL=$1
else
  echo "Usage: update.sh /path/to/libcharset" 1>&2
  exit 1
fi

if test -f $ORIGINAL/lib/localcharset.c ; then : ; else
  echo "Usage: update.sh /path/to/libcharset" 1>&2
  exit 1
fi

VERSION=`grep VERSION= $ORIGINAL/configure.ac | sed s/VERSION=//`

for i in localcharset.c ref-add.sin ref-del.sin config.charset ; do
  cp $ORIGINAL/lib/$i .
done

for i in libcharset.h localcharset.h ; do
  cp $ORIGINAL/include/$i.in ./$i
done

for i in codeset.m4 glibc21.m4 ; do
  cp $ORIGINAL/m4/$i .
done

patch -p0 < libcharset-glib.patch

echo "dnl From libcharset $VERSION" > ../../aclibcharset.m4