summaryrefslogtreecommitdiff
path: root/Admin/gen-uni-tables
diff options
context:
space:
mode:
Diffstat (limited to 'Admin/gen-uni-tables')
-rwxr-xr-xAdmin/gen-uni-tables17
1 files changed, 9 insertions, 8 deletions
diff --git a/Admin/gen-uni-tables b/Admin/gen-uni-tables
index c75ba9e..e6cd7dc 100755
--- a/Admin/gen-uni-tables
+++ b/Admin/gen-uni-tables
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (C) 2015-2018 Free Software Foundation, Inc.
+# Copyright (C) 2015-2022 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -79,15 +79,15 @@ test -n "$UCD" || \
func_tmpdir
trap 'exit_status=$?
- if test "$signal" != 0; then
- echo "caught signal $signal" >&2
+ if test "$signal" != EXIT; then
+ echo "caught signal SIG$signal" >&2
fi
rm -rf "$tmp"
- exit $exit_status' 0
-for signal in 1 2 3 13 15; do
+ exit $exit_status' EXIT
+for signal in HUP INT QUIT PIPE TERM; do
trap '{ signal='$signal'; func_exit 1; }' $signal
done
-signal=0
+signal=EXIT
# Compile lib/gen-uni-tables.c in a temporary directory
: ${CC=gcc}
@@ -106,6 +106,7 @@ ver=`sed -n -e 's/.*Version \([0-9.]*\).*/\1/p' < "$UCD/ReadMe.txt"`
&& "$tmp/gen-uni-tables" "$UCD/UnicodeData.txt" \
"$UCD/PropList.txt" \
"$UCD/DerivedCoreProperties.txt" \
+ "$UCD/emoji/emoji-data.txt" \
"$UCD/ArabicShaping.txt" \
"$UCD/Scripts.txt" \
"$UCD/Blocks.txt" \
@@ -131,8 +132,8 @@ ver=`sed -n -e 's/.*Version \([0-9.]*\).*/\1/p' < "$UCD/ReadMe.txt"`
# Copy necessary files from UCD
for dstfile in "$GNULIB_SRCDIR/tests/uninorm/NormalizationTest.txt" \
- "$GNULIB_SRCDIR/tests/uniwbrk/WordBreakTest.txt" \
- "$GNULIB_SRCDIR/tests/unigbrk/GraphemeBreakTest.txt" ; do
+ "$GNULIB_SRCDIR/tests/uniwbrk/WordBreakTest.txt" \
+ "$GNULIB_SRCDIR/tests/unigbrk/GraphemeBreakTest.txt" ; do
srcfile=`expr "$dstfile" : '.*/\(.*\)'`
if test -f "$UCD/$srcfile"; then
srcfile="$UCD/$srcfile"