diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2020-12-17 19:45:05 +0000 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2021-01-07 06:33:20 +0000 |
commit | e2c6b620b3f6430ed87e63e1bddd0513feb8e0ef (patch) | |
tree | c21777980b2360f12e84e686b072a2b0f2209d25 | |
parent | b1e1a87512c2352c03ecda9494a1f09e860723d2 (diff) |
meson: remove unused stdin_wrapper.py script
Not needed any more. Used to be used with fc-case and fc-lang,
but those have since been rewritten in python.
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | stdin_wrapper.py | 20 |
3 files changed, 0 insertions, 22 deletions
diff --git a/Makefile.am b/Makefile.am index 71ec6cd..83db510 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,7 +47,6 @@ MESON_FILES = \ src/fcwindows.h \ src/fontconfig.def.in \ src/makealias.py \ - stdin_wrapper.py \ $(wildcard $(srcdir)/*/meson.build) \ $(wildcard $(srcdir)/meson-cc-tests/*) \ $(wildcard $(srcdir)/subprojects/*.wrap) diff --git a/meson.build b/meson.build index 3c96f1f..016bf60 100644 --- a/meson.build +++ b/meson.build @@ -301,7 +301,6 @@ fcstdint_h = configure_file( output: 'fcstdint.h', copy: true) -stdinwrapper = files('stdin_wrapper.py')[0] makealias = files('src/makealias.py')[0] alias_headers = custom_target('alias_headers', diff --git a/stdin_wrapper.py b/stdin_wrapper.py deleted file mode 100644 index 17fc628..0000000 --- a/stdin_wrapper.py +++ /dev/null @@ -1,20 +0,0 @@ -import argparse -import subprocess -import sys - -if __name__=='__main__': - parser = argparse.ArgumentParser() - parser.add_argument('prog') - parser.add_argument('input') - parser.add_argument('output') - parser.add_argument('args', nargs='*') - - args = parser.parse_args() - - unescaped_args = [arg.strip('""') for arg in args.args] - - command = [args.prog] + unescaped_args - - with open(args.output, 'w') as out: - with open(args.input, 'r') as in_: - sys.exit(subprocess.run(command, stdin=in_, stdout=out).returncode) |