src2xml.py (9f22d7c2) src2xml.py (ae54856b)
1#!/usr/bin/env python
2# *************************************************************
3#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the

--- 32 unchanged lines hidden (view full) ---

41 examples = '''
42Examples:
43 src2xml.py --output-dir=. --post-process --ignore-includes zoom.src
44 src2xml.py --dry-run -I svx/inc -I svx/source/dialog zoom.src
45'''
46
47 def format_examples (self):
48 return examples
1#!/usr/bin/env python
2# *************************************************************
3#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the

--- 32 unchanged lines hidden (view full) ---

41 examples = '''
42Examples:
43 src2xml.py --output-dir=. --post-process --ignore-includes zoom.src
44 src2xml.py --dry-run -I svx/inc -I svx/source/dialog zoom.src
45'''
46
47 def format_examples (self):
48 return examples
49
49
50 if 'epilog' in p.__dict__:
51 p.formatter.format_epilog = format_examples
52 p.epilog = examples
53 else:
54 p.formatter.format_description = format_examples
55 p.description = examples
56
57 p.description = '''OOo SRC To Layout XML Converter.

--- 180 unchanged lines hidden (view full) ---

238 if not files:
239 p.error ("no input files")
240
241 for f in files:
242 if options.dry_run:
243 dry_one_file (f, options)
244 else:
245 do_one_file (f, options)
50 if 'epilog' in p.__dict__:
51 p.formatter.format_epilog = format_examples
52 p.epilog = examples
53 else:
54 p.formatter.format_description = format_examples
55 p.description = examples
56
57 p.description = '''OOo SRC To Layout XML Converter.

--- 180 unchanged lines hidden (view full) ---

238 if not files:
239 p.error ("no input files")
240
241 for f in files:
242 if options.dry_run:
243 dry_one_file (f, options)
244 else:
245 do_one_file (f, options)
246
246
247if __name__ == '__main__':
248 main ()
247if __name__ == '__main__':
248 main ()