Skip to content

Commit

Permalink
Makefile: Document sed command and parameterise UCD version
Browse files Browse the repository at this point in the history
  • Loading branch information
wezm committed Oct 4, 2024
1 parent 5bcf6ef commit 4c23759
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
UCD:=16.0.0

# the sed command removes entries in the table that map to themselves, which
# makes the data tables a bit smaller.
tables:
yeslogic-ucd-generate case-folding-simple --rust-match ../ucd-generate/ucd-16.0.0/ > src/case_folding_simple.rs
yeslogic-ucd-generate case-mapping ../ucd-generate/ucd-16.0.0/ > src/tables.rs
yeslogic-ucd-generate case-folding-simple --rust-match ../ucd-generate/ucd-$(UCD)/ > src/case_folding_simple.rs
yeslogic-ucd-generate case-mapping ../ucd-generate/ucd-$(UCD)/ > src/tables.rs
cargo fmt
sed -i.bak -E '/\(([0-9]+), &\[\1\]\)/d' src/tables.rs
rm src/tables.rs.bak
Expand Down

0 comments on commit 4c23759

Please sign in to comment.