Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/fontconfig/process-template.py

Issue 294683003: Since we're only using it on Linux now, just require poppler as a system dependency. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: set -e Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/fontconfig/config/windows/unistd.h ('k') | third_party/iconv/LICENSE » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/fontconfig/process-template.py
diff --git a/third_party/fontconfig/process-template.py b/third_party/fontconfig/process-template.py
deleted file mode 100755
index 6c914027016b770d550fe9454deb4de4e8bd0e3b..0000000000000000000000000000000000000000
--- a/third_party/fontconfig/process-template.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/python
-
-# Copyright 2014 Google Inc.
-#
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# A simple template processing script.
-
-import optparse
-import os
-import sys
-
-parser = optparse.OptionParser()
-parser.add_option('-i', '--input')
-parser.add_option('-o', '--output')
-parser.add_option(
- '-k', '--keyword_substitution', action='append', nargs=2,
- metavar=('KEY', 'VALUE'), help='Changes KEY to VALUE in the template.')
-parser.add_option(
- '-p', '--path_substitution', action='append', nargs=2,
- metavar=('KEY', 'PATH'),
- help='Makes PATH absolute then changes KEY to PATH in the template.')
-
-(args, _) = parser.parse_args()
-
-input = sys.stdin
-if args.input:
- input = open(args.input, 'r')
-
-output = sys.stdout
-if args.output:
- output = open(args.output, 'w')
-
-path_subs = None
-if args.path_substitution:
- path_subs = [
- [sub[0], os.path.abspath(sub[1])] for sub in args.path_substitution
- ]
-
-for line in input:
- if args.keyword_substitution:
- for (key, value) in args.keyword_substitution:
- line = line.replace(key, value)
- if path_subs:
- for (key, path) in path_subs:
- line = line.replace(key, path)
- output.write(line)
-
-input.close()
-output.close()
« no previous file with comments | « third_party/fontconfig/config/windows/unistd.h ('k') | third_party/iconv/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698