[rygel/wip/meson: 30/34] fixup! meson: Misc data installs
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson: 30/34] fixup! meson: Misc data installs
- Date: Wed, 19 Sep 2018 19:59:17 +0000 (UTC)
commit 7bdc08d5826bdfa41e1203dc92a6d301143ed474
Author: Jens Georg <mail jensge org>
Date: Tue May 23 18:14:29 2017 +0200
fixup! meson: Misc data installs
data/xml/process-xml.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/data/xml/process-xml.py b/data/xml/process-xml.py
new file mode 100755
index 00000000..d7761542
--- /dev/null
+++ b/data/xml/process-xml.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+
+import sys
+import os.path
+import re
+
+if len(sys.argv) != 2:
+ print('Usage: {} <INPUT>'.format(os.path.basename(sys.argv[0])))
+ sys.exit(1)
+
+with open(sys.argv[1], "r") as f:
+ for line in f:
+ print(re.sub('^\s*', '', line).replace('\n', ''), end='')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]