From e2c6b620b3f6430ed87e63e1bddd0513feb8e0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 17 Dec 2020 19:45:05 +0000 Subject: [PATCH] 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. --- Makefile.am | 1 - meson.build | 1 - stdin_wrapper.py | 20 -------------------- 3 files changed, 22 deletions(-) delete mode 100644 stdin_wrapper.py 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)