summaryrefslogtreecommitdiff
path: root/Build/source/libs/harfbuzz/harfbuzz-src/src/gen-def.py
diff options
context:
space:
mode:
authorDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
committerDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
commitc6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch)
tree1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/libs/harfbuzz/harfbuzz-src/src/gen-def.py
parent07ee7222e389b0777456b427a55c22d0e6ffd267 (diff)
French translation for tlmgr updated
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/harfbuzz/harfbuzz-src/src/gen-def.py')
-rw-r--r--Build/source/libs/harfbuzz/harfbuzz-src/src/gen-def.py48
1 files changed, 0 insertions, 48 deletions
diff --git a/Build/source/libs/harfbuzz/harfbuzz-src/src/gen-def.py b/Build/source/libs/harfbuzz/harfbuzz-src/src/gen-def.py
deleted file mode 100644
index aa6dcd95fbb..00000000000
--- a/Build/source/libs/harfbuzz/harfbuzz-src/src/gen-def.py
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env python3
-
-"usage: gen-def.py harfbuzz.def hb.h [hb-blob.h hb-buffer.h ...]"
-
-import os, re, sys
-
-if len (sys.argv) < 3:
- sys.exit(__doc__)
-
-output_file = sys.argv[1]
-header_paths = sys.argv[2:]
-
-headers_content = []
-for h in header_paths:
- if h.endswith (".h"):
- with open (h, encoding='utf-8') as f: headers_content.append (f.read ())
-
-symbols = sorted (re.findall (r"^hb_\w+(?= \()", "\n".join (headers_content), re.M))
-if '--experimental-api' not in sys.argv:
- # Move these to harfbuzz-sections.txt when got stable
- experimental_symbols = \
-"""hb_font_draw_glyph
-hb_draw_funcs_t
-hb_draw_close_path_func_t
-hb_draw_cubic_to_func_t
-hb_draw_line_to_func_t
-hb_draw_move_to_func_t
-hb_draw_quadratic_to_func_t
-hb_draw_funcs_create
-hb_draw_funcs_destroy
-hb_draw_funcs_is_immutable
-hb_draw_funcs_make_immutable
-hb_draw_funcs_reference
-hb_draw_funcs_set_close_path_func
-hb_draw_funcs_set_cubic_to_func
-hb_draw_funcs_set_line_to_func
-hb_draw_funcs_set_move_to_func
-hb_draw_funcs_set_quadratic_to_func
-hb_style_get_value
-hb_font_get_var_coords_design""".splitlines ()
- symbols = [x for x in symbols if x not in experimental_symbols]
-symbols = "\n".join (symbols)
-
-result = symbols if os.getenv ('PLAIN_LIST', '') else """EXPORTS
-%s
-LIBRARY lib%s-0.dll""" % (symbols, output_file.replace ('src/', '').replace ('.def', ''))
-
-with open (output_file, "w") as f: f.write (result)