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.
This commit is contained in:
parent
b1e1a87512
commit
e2c6b620b3
|
@ -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)
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue