summaryrefslogtreecommitdiffstats
path: root/scripts/oe-trim-schemas
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-trim-schemas')
-rwxr-xr-xscripts/oe-trim-schemas9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/oe-trim-schemas b/scripts/oe-trim-schemas
index 66a1b8d81d..7c199ef1df 100755
--- a/scripts/oe-trim-schemas
+++ b/scripts/oe-trim-schemas
@@ -18,6 +18,15 @@ def children (elem, name=None):
18 l = [e for e in l if e.tag == name] 18 l = [e for e in l if e.tag == name]
19 return l 19 return l
20 20
21if len(sys.argv) < 2 or sys.argv[1] in ('-h', '--help'):
22 print('oe-trim-schemas: error: the following arguments are required: schema\n'
23 'Usage: oe-trim-schemas schema\n\n'
24 'OpenEmbedded trim schemas - remove unneeded schema locale translations\n'
25 ' from gconf schema files\n\n'
26 'arguments:\n'
27 ' schema gconf schema file to trim\n')
28 sys.exit(2)
29
21xml = etree.parse(sys.argv[1]) 30xml = etree.parse(sys.argv[1])
22 31
23for schema in child(xml.getroot(), "schemalist").getchildren(): 32for schema in child(xml.getroot(), "schemalist").getchildren():