xref: /freebsd/contrib/expat/xmlwf/xmlwf_helpgen.sh (revision cc68614da8232d8baaca0ae0d0dd8f890f06623e)
16b2c1e49SXin LI#! /usr/bin/env bash
26b2c1e49SXin LI#                          __  __            _
36b2c1e49SXin LI#                       ___\ \/ /_ __   __ _| |_
46b2c1e49SXin LI#                      / _ \\  /| '_ \ / _` | __|
56b2c1e49SXin LI#                     |  __//  \| |_) | (_| | |_
66b2c1e49SXin LI#                      \___/_/\_\ .__/ \__,_|\__|
76b2c1e49SXin LI#                               |_| XML parser
86b2c1e49SXin LI#
9*cc68614dSXin LI# Copyright (c) 2019-2021 Sebastian Pipping <sebastian@pipping.org>
106b2c1e49SXin LI# Licensed under the MIT license:
116b2c1e49SXin LI#
126b2c1e49SXin LI# Permission is  hereby granted,  free of charge,  to any  person obtaining
136b2c1e49SXin LI# a  copy  of  this  software   and  associated  documentation  files  (the
146b2c1e49SXin LI# "Software"),  to  deal in  the  Software  without restriction,  including
156b2c1e49SXin LI# without  limitation the  rights  to use,  copy,  modify, merge,  publish,
166b2c1e49SXin LI# distribute, sublicense, and/or sell copies of the Software, and to permit
176b2c1e49SXin LI# persons  to whom  the Software  is  furnished to  do so,  subject to  the
186b2c1e49SXin LI# following conditions:
196b2c1e49SXin LI#
206b2c1e49SXin LI# The above copyright  notice and this permission notice  shall be included
216b2c1e49SXin LI# in all copies or substantial portions of the Software.
226b2c1e49SXin LI#
236b2c1e49SXin LI# THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
246b2c1e49SXin LI# EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
256b2c1e49SXin LI# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
266b2c1e49SXin LI# NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
276b2c1e49SXin LI# DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
286b2c1e49SXin LI# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
296b2c1e49SXin LI# USE OR OTHER DEALINGS IN THE SOFTWARE.
306b2c1e49SXin LI
316b2c1e49SXin LI./xmlwf/xmlwf_helpgen.py | sed \
32*cc68614dSXin LI        -e 's,usage: ,usage:,' \
33*cc68614dSXin LI        -e 's,  xmlwf,  %s,' \
346b2c1e49SXin LI        -e 's, \[-h | -v\],,' \
356b2c1e49SXin LI        -e 's,^,      T(",' \
366b2c1e49SXin LI        -e 's,$,\\n"),'
37