fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Makefile.am      |    1 -
 meson.build      |    1 -
 stdin_wrapper.py |   20 --------------------
 3 files changed, 22 deletions(-)

New commits:
commit e2c6b620b3f6430ed87e63e1bddd0513feb8e0ef
Author: Tim-Philipp Müller <tim@xxxxxxxxxxxxxxx>
Date:   Thu Dec 17 19:45:05 2020 +0000

    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.

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)
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux