mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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
This commit is contained in:
parent
c090a0664f
commit
c7b031e177
1 changed files with 2 additions and 2 deletions
|
|
@ -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" |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue