Skip to content

Commit

Permalink
Add unicode-check target.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Nov 15, 2022
1 parent 914ef13 commit 112b028
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile.aut
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ ubin.uni: unicode/UnicodeData.txt
wide.uni: unicode/EastAsianWidth.txt
./mkutable -f1 W F -- unicode/EastAsianWidth.txt > $@

unicode-check:
rm -rf unicode-old
mv -f unicode unicode-old
${MAKE} -f Makefile.aut unicode/UnicodeData.txt unicode/EastAsianWidth.txt
@if diff -q unicode-old unicode >/dev/null; then rm -rf unicode; mv -f unicode-old unicode; echo "unicode files already up to date"; else echo "unicode files updated"; fi

unicode/UnicodeData.txt:
mkdir -p unicode
lftp -c 'open -u "anonymous:${EMAIL}" ftp.unicode.org ; get Public/UNIDATA/UnicodeData.txt -o $@'
Expand Down

0 comments on commit 112b028

Please sign in to comment.