Skip to content

Commit

Permalink
Merge pull request #314 from tetengo/scripts
Browse files Browse the repository at this point in the history
Scripts
  • Loading branch information
kaorut authored Jan 8, 2024
2 parents c8ec1d3 + c99e78d commit 7c16b04
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup/installer/Makefile.nmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WIXCOMMAND="wix"
EMBEDTRANSFORMDIR="C:\Program Files (x86)\embedtransform\"
!ENDIF
EMBEDTRANSFORM="$(EMBEDTRANSFORMDIR)EmbedTransform.exe"
PYTHON=python3
PYTHON=py
COPY=copy
ECHO=echo
MKDIR=mkdir
Expand Down
2 changes: 1 addition & 1 deletion setup/installer/copy_libimage_files.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#! /usr/bin/env python
"""Copies the files for a library image
Copyright (C) 2019-2023 kaoru https://www.tetengo.org/
Expand Down
2 changes: 1 addition & 1 deletion setup/installer/generate_content_wxs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#! /usr/bin/env python
"""Generates content.wxs source
Copyright (C) 2019-2023 kaoru https://www.tetengo.org/
Expand Down
2 changes: 1 addition & 1 deletion setup/installer/generate_content_wxs_source.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#! /usr/bin/env python
"""Generates content.wxs source
Copyright (C) 2019-2023 kaoru https://www.tetengo.org/
Expand Down
2 changes: 1 addition & 1 deletion tool/make_character_property_map.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#! /usr/bin/env python
"""Makes character_property_map.txt for tetengo::text
Copyright (C) 2019-2023 kaoru https://www.tetengo.org/
Expand Down
6 changes: 4 additions & 2 deletions tool/make_character_property_map_cpp.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
rem Makes character_property_map.cpp for tetengo::text
rem Copyright (C) 2019-2023 kaoru https://www.tetengo.org/

set PYTHON=py

curl https://www.unicode.org/Public/14.0.0/ucd/EastAsianWidth.txt > %~dp0\EastAsianWidth.txt
curl https://www.unicode.org/Public/14.0.0/ucd/emoji/emoji-data.txt > %~dp0\emoji-data.txt
curl http://www.unicode.org/Public/14.0.0/ucd/auxiliary/GraphemeBreakProperty.txt > %~dp0\GraphemeBreakProperty.txt

python3 %~dp0\make_character_property_map.py %~dp0\EastAsianWidth.txt %~dp0\emoji-data.txt %~dp0\GraphemeBreakProperty.txt %~dp0\character_property_map.txt
%PYTHON% %~dp0\make_character_property_map.py %~dp0\EastAsianWidth.txt %~dp0\emoji-data.txt %~dp0\GraphemeBreakProperty.txt %~dp0\character_property_map.txt

python3 %~dp0\make_character_property_map_cpp.py %~dp0\character_property_map.txt %~dp0\..\library\text\cpp\src\tetengo.text.grapheme_splitting.character_property_map.cpp
%PYTHON% %~dp0\make_character_property_map_cpp.py %~dp0\character_property_map.txt %~dp0\..\library\text\cpp\src\tetengo.text.grapheme_splitting.character_property_map.cpp
2 changes: 1 addition & 1 deletion tool/make_character_property_map_cpp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#! /usr/bin/env python
"""Makes character_property_map.txt for tetengo::text
Copyright (C) 2019-2023 kaoru https://www.tetengo.org/
Expand Down

0 comments on commit 7c16b04

Please sign in to comment.