aboutsummaryrefslogtreecommitdiff
path: root/gen
diff options
context:
space:
mode:
Diffstat (limited to 'gen')
-rwxr-xr-xgen/data-files34
-rwxr-xr-xgen/prop/bool-props10
-rwxr-xr-xgen/prop/bpb2
-rwxr-xr-xgen/prop/bpt2
-rwxr-xr-xgen/prop/dt2
-rwxr-xr-xgen/prop/ea2
-rwxr-xr-xgen/prop/gc2
-rwxr-xr-xgen/prop/lb2
-rwxr-xr-xgen/prop/na2
-rwxr-xr-xgen/prop/na12
-rwxr-xr-xgen/prop/nt2
-rwxr-xr-xgen/prop/nv2
-rwxr-xr-xgen/prop/slc2
-rwxr-xr-xgen/prop/stc2
-rwxr-xr-xgen/prop/suc2
15 files changed, 35 insertions, 35 deletions
diff --git a/gen/data-files b/gen/data-files
index 550ef82..3deb623 100755
--- a/gen/data-files
+++ b/gen/data-files
@@ -6,25 +6,25 @@ mkdir -p data
readonly BASE=https://www.unicode.org/Public/UCD/latest/ucd
-readonly URLS='
-auxiliary/GraphemeBreakProperty.txt
-BidiBrackets.txt
-DerivedCoreProperties.txt
-DerivedNormalizationProps.txt
-emoji/emoji-data.txt
-extracted/DerivedBinaryProperties.txt
-extracted/DerivedDecompositionType.txt
-extracted/DerivedEastAsianWidth.txt
-extracted/DerivedLineBreak.txt
-extracted/DerivedNumericType.txt
-extracted/DerivedNumericValues.txt
-PropList.txt
-UnicodeData.txt
+readonly PATHS='
+auxiliary/GraphemeBreakProperty
+BidiBrackets
+DerivedCoreProperties
+DerivedNormalizationProps
+emoji/emoji-data
+extracted/DerivedBinaryProperties
+extracted/DerivedDecompositionType
+extracted/DerivedEastAsianWidth
+extracted/DerivedLineBreak
+extracted/DerivedNumericType
+extracted/DerivedNumericValues
+PropList
+UnicodeData
'
-for url in $URLS
+for path in $PATHS
do
- name="data/${url##*/}"
- test -f "$name" || wget -q "$BASE/$url" -O "$name" &
+ name="data/${path##*/}"
+ test -f "$name" || wget -q "$BASE/$path.txt" -O "$name" &
done
wait
diff --git a/gen/prop/bool-props b/gen/prop/bool-props
index 5e93a8e..04e1e32 100755
--- a/gen/prop/bool-props
+++ b/gen/prop/bool-props
@@ -85,11 +85,11 @@ gen()
printf 'DONE uprop_is_%s()\n' $p >&2
}
-for prop in $props1; do gen $prop PropList.txt & done
-for prop in $props2; do gen $prop DerivedCoreProperties.txt & done
-for prop in $props3; do gen $prop emoji-data.txt & done
-for prop in $props4; do gen $prop DerivedNormalizationProps.txt & done
-for prop in $props5; do gen $prop DerivedBinaryProperties.txt & done
+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 '[[__nodiscard__, __unsequenced__]] bool uprop_is_%s(rune);\n' \
$(printf '%s\n' $props1 $props2 $props3 $props4 $props5 | cut -d= -f1) \
diff --git a/gen/prop/bpb b/gen/prop/bpb
index 52e3a9d..c6fdf5d 100755
--- a/gen/prop/bpb
+++ b/gen/prop/bpb
@@ -49,4 +49,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);"
print "}"
}
-' data/BidiBrackets.txt
+' data/BidiBrackets
diff --git a/gen/prop/bpt b/gen/prop/bpt
index b73b804..c9726a6 100755
--- a/gen/prop/bpt
+++ b/gen/prop/bpt
@@ -50,4 +50,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);"
print "}"
}
-' data/BidiBrackets.txt
+' data/BidiBrackets
diff --git a/gen/prop/dt b/gen/prop/dt
index 82d6331..eb4884c 100755
--- a/gen/prop/dt
+++ b/gen/prop/dt
@@ -81,4 +81,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);"
print "}"
}
-' data/DerivedDecompositionType.txt | sed 's/\s*$//'
+' data/DerivedDecompositionType | sed 's/\s*$//'
diff --git a/gen/prop/ea b/gen/prop/ea
index 6bf1291..a72ff10 100755
--- a/gen/prop/ea
+++ b/gen/prop/ea
@@ -62,4 +62,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);"
print "}"
}
-' data/DerivedEastAsianWidth.txt | sed 's/\s*$//'
+' data/DerivedEastAsianWidth | sed 's/\s*$//'
diff --git a/gen/prop/gc b/gen/prop/gc
index 219df8a..c027754 100755
--- a/gen/prop/gc
+++ b/gen/prop/gc
@@ -65,4 +65,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);"
print "}"
}
-' data/UnicodeData.txt
+' data/UnicodeData
diff --git a/gen/prop/lb b/gen/prop/lb
index 25febdb..251a947 100755
--- a/gen/prop/lb
+++ b/gen/prop/lb
@@ -62,4 +62,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);"
print "}"
}
-' data/DerivedLineBreak.txt | sed 's/\s*$//'
+' data/DerivedLineBreak | sed 's/\s*$//'
diff --git a/gen/prop/na b/gen/prop/na
index 291a7d9..250b746 100755
--- a/gen/prop/na
+++ b/gen/prop/na
@@ -35,4 +35,4 @@ END {
print "\treturn ch < lengthof(lookup) ? lookup[ch] : (struct u8view){};"
print "}"
}
-' data/UnicodeData.txt
+' data/UnicodeData
diff --git a/gen/prop/na1 b/gen/prop/na1
index 7ed1a0a..855f1de 100755
--- a/gen/prop/na1
+++ b/gen/prop/na1
@@ -41,4 +41,4 @@ END {
print "\treturn mlib_lookup_kv(ch);"
print "}"
}
-' data/UnicodeData.txt
+' data/UnicodeData
diff --git a/gen/prop/nt b/gen/prop/nt
index a55ea45..720baf2 100755
--- a/gen/prop/nt
+++ b/gen/prop/nt
@@ -66,4 +66,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);"
print "}"
}
-' data/DerivedNumericType.txt | sed 's/\s*$//'
+' data/DerivedNumericType | sed 's/\s*$//'
diff --git a/gen/prop/nv b/gen/prop/nv
index 4d81fa9..9cb6ba9 100755
--- a/gen/prop/nv
+++ b/gen/prop/nv
@@ -62,4 +62,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);"
print "}"
}
-' data/DerivedNumericValues.txt
+' data/DerivedNumericValues
diff --git a/gen/prop/slc b/gen/prop/slc
index 57ee4c0..c7019e4 100755
--- a/gen/prop/slc
+++ b/gen/prop/slc
@@ -50,4 +50,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);"
print "}"
}
-' data/UnicodeData.txt
+' data/UnicodeData
diff --git a/gen/prop/stc b/gen/prop/stc
index 42dca19..252cfa5 100755
--- a/gen/prop/stc
+++ b/gen/prop/stc
@@ -42,4 +42,4 @@ END {
print "\treturn mlib_lookup_kv(ch);"
print "}"
}
-' data/UnicodeData.txt
+' data/UnicodeData
diff --git a/gen/prop/suc b/gen/prop/suc
index 8a53060..1ae4ad4 100755
--- a/gen/prop/suc
+++ b/gen/prop/suc
@@ -50,4 +50,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);"
print "}"
}
-' data/UnicodeData.txt
+' data/UnicodeData