From b8e9e1ca067f568670f19ee7e0980a3c3c3a0b34 Mon Sep 17 00:00:00 2001 From: Alexander Sieg Date: Sat, 2 May 2020 21:10:38 +0200 Subject: [PATCH] made generate-unicode-precompose.sh work on BSD systems bsd cut takes the files always as the last argument, according to the gnu man page this should be the same for gnu cut A Bourne shell should be available under /bin/sh on most if not all posix conform systems --- scripts/generate-unicode-precompose.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate-unicode-precompose.sh b/scripts/generate-unicode-precompose.sh index 49e12650..dcc73a8f 100755 --- a/scripts/generate-unicode-precompose.sh +++ b/scripts/generate-unicode-precompose.sh @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/bin/sh unicodedata_txt="${1}" output="${2}" @@ -22,7 +22,7 @@ EOF # # "borrowed" from xterm/unicode/make-precompose.sh -cut "${unicodedata_txt}" -d ";" -f 1,6 | +cut -d ";" -f 1,6 "${unicodedata_txt}" | grep ";[0-9,A-F]" | grep " " | sed -e "s/ /, 0x/;s/^/{ 0x/;s/;/, 0x/;s/$/},/" | sed -e "s,0x\(....\)\([^0-9A-Fa-f]\),0x0\1\2,g" |