Skip to content

Commit 5010181

Browse files
committed
tool: Add Makefile for updating Unicode database
1 parent 125b5c7 commit 5010181

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ libonigmo_la_LDFLAGS = -version-info $(LTVERSION) -no-undefined
3939
EXTRA_DIST = .gitignore onigmo.pc.in HISTORY README.ja index.html \
4040
index_ja.html doc/API doc/API.ja doc/RE doc/RE.ja doc/FAQ doc/FAQ.ja \
4141
doc/UnicodeProps.txt \
42-
tool/.gitignore tool/case-folding.rb tool/convert-name2ctype.sh \
43-
tool/convert-jis-props.sh \
42+
tool/.gitignore tool/Makefile tool/case-folding.rb \
43+
tool/convert-name2ctype.sh tool/convert-jis-props.sh \
4444
tool/enc-unicode.rb tool/download-ucd.sh tool/update-doc.py \
4545
win32/Makefile win32/Makefile.mingw win32/config.h win32/testc.c \
4646
win32/makedef.py win32/onigmo.rc \

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ libonigmo_la_LDFLAGS = -version-info $(LTVERSION) -no-undefined
367367
EXTRA_DIST = .gitignore onigmo.pc.in HISTORY README.ja index.html \
368368
index_ja.html doc/API doc/API.ja doc/RE doc/RE.ja doc/FAQ doc/FAQ.ja \
369369
doc/UnicodeProps.txt \
370-
tool/.gitignore tool/case-folding.rb tool/convert-name2ctype.sh \
371-
tool/convert-jis-props.sh \
370+
tool/.gitignore tool/Makefile tool/case-folding.rb \
371+
tool/convert-name2ctype.sh tool/convert-jis-props.sh \
372372
tool/enc-unicode.rb tool/download-ucd.sh tool/update-doc.py \
373373
win32/Makefile win32/Makefile.mingw win32/config.h win32/testc.c \
374374
win32/makedef.py win32/onigmo.rc \

tool/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
update: casefold.h name2ctype.h
2+
cp casefold.h name2ctype.h ../enc/unicode
3+
4+
download:
5+
./download-ucd.sh
6+
7+
8+
casefold.h: CaseFolding.txt UnicodeData.txt SpecialCasing.txt
9+
$(RUBY) ./case-folding.rb -m . -o casefold.h
10+
11+
name2ctype.h: name2ctype.kwd
12+
./convert-name2ctype.sh name2ctype.kwd > name2ctype.h
13+
14+
name2ctype.kwd: Blocks.txt CaseFolding.txt DerivedAge.txt DerivedCoreProperties.txt PropertyAliases.txt PropertyValueAliases.txt PropList.txt Scripts.txt UnicodeData.txt
15+
$(RUBY) ./enc-unicode.rb . > name2ctype.kwd
16+
17+
18+
clean:
19+
rm -f casefold.h name2ctype.kwd name2ctype.h
20+
rm -f Blocks.txt CaseFolding.txt DerivedAge.txt DerivedCoreProperties.txt PropertyAliases.txt PropertyValueAliases.txt PropList.txt Scripts.txt SpecialCasing.txt UnicodeData.txt

0 commit comments

Comments
 (0)