diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-09 10:42:40 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-09 10:42:40 +0000 |
| commit | c7b031e177cf75ef0556758d15ea19579b5da660 (patch) | |
| tree | 4aa3b8427684230757a9eb35265423bd4b4191f5 | |
| parent | Revert "term: print: line-wrap multi-column characters instead of cutting them in half" (diff) | |
generate-unicode-precompose: /bin/sh is more standard than /usr/bin/sh
At the same time, fix `cut` command to pass filename last, as this is
also more portable.
Fixes build issues on e.g. Alpine Linux
| -rwxr-xr-x | scripts/generate-unicode-precompose.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate-unicode-precompose.sh b/scripts/generate-unicode-precompose.sh index 49e12650..85f59917 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" | |
