From 17e104138e78cceb67128a3f8abd378133e993e8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 3 May 2024 01:48:50 +0200 Subject: Improve gen script runner --- gen/prop/bool-props | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'gen/prop/bool-props') diff --git a/gen/prop/bool-props b/gen/prop/bool-props index 198b0b8..a79f858 100755 --- a/gen/prop/bool-props +++ b/gen/prop/bool-props @@ -79,15 +79,21 @@ ri=Regional_Indicator gen() { local p=${1%%=*} - gen/prop/bool-props.py ${1#*=} $p data/$2 \ - >lib/unicode/prop/uprop_is_$p.c + printf 'sh -c "gen/prop/bool-props.py %s %s %s >%s"\n' \ + ${1#*=} $p data/$2 lib/unicode/prop/uprop_is_$p.c } -for prop in $props1; do gen $prop PropList & done -for prop in $props2; do gen $prop DerivedCoreProperties & done -for prop in $props3; do gen $prop emoji-data & done -for prop in $props4; do gen $prop DerivedNormalizationProps & done -for prop in $props5; do gen $prop DerivedBinaryProperties & done +( + IFS=' +' + parallel-moreutils -- $( + for prop in $props1; do gen $prop PropList & done + for prop in $props2; do gen $prop DerivedCoreProperties & done + for prop in $props3; do gen $prop emoji-data & done + for prop in $props4; do gen $prop DerivedNormalizationProps & done + for prop in $props5; do gen $prop DerivedBinaryProperties & done + ) +) printf '[[_mlib_pure]] bool uprop_is_%s(rune);\n' \ $(printf '%s\n' $props1 $props2 $props3 $props4 $props5 | cut -d= -f1) \ -- cgit v1.2.3