diff options
Diffstat (limited to 'Admin/gen-uninames')
-rwxr-xr-x | Admin/gen-uninames | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/Admin/gen-uninames b/Admin/gen-uninames index 4121260..af2999f 100755 --- a/Admin/gen-uninames +++ b/Admin/gen-uninames @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2015 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,33 +79,28 @@ 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 : ${CLISP=clisp} ("$CLISP" --version) >/dev/null 2>/dev/null \ || { echo "$progname: *** clisp not found; skipping uniname" 1>&2; exit 0; } -sed -e '/^[0-9A-F]*;</d' "$UCD/UnicodeData.txt" > "$tmp/UnicodeDataNames.txt" - -sed -e 's/ *$//' -e '/^#/d' -e '/^$/d' < "$UCD/NameAliases.txt" \ - > "$tmp/NameAliases.txt" - "$CLISP" "$GNULIB_SRCDIR/lib/uniname/gen-uninames.lisp" \ - "$tmp/UnicodeDataNames.txt" \ + "$UCD/UnicodeData.txt" \ "$GNULIB_SRCDIR/lib/uniname/uninames.h" \ - "$tmp/NameAliases.txt" + "$UCD/NameAliases.txt" # Copy necessary files from UCD for dstfile in "$GNULIB_SRCDIR/tests/uniname/UnicodeData.txt" \ - "$GNULIB_SRCDIR/tests/uniname/NameAliases.txt" ; do + "$GNULIB_SRCDIR/tests/uniname/NameAliases.txt" ; do srcfile=`expr "$dstfile" : '.*/\(.*\)'` if test -f "$UCD/$srcfile"; then srcfile="$UCD/$srcfile" |