diff options
author | Xin LI <delphij@FreeBSD.org> | 2019-11-24 23:46:29 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2019-11-24 23:46:29 +0000 |
commit | 987ba809b8add6260181a8c036ec3c017948ff56 (patch) | |
tree | 2b55c0f784f511cf1deffd7800cef1f16aab1c55 /xmlwf/xmlwf_helpgen.sh | |
parent | 77c85705a616126682be274fd54e9c4308083501 (diff) | |
download | src-987ba809b8add6260181a8c036ec3c017948ff56.tar.gz src-987ba809b8add6260181a8c036ec3c017948ff56.zip |
Vendor import of expat 2.2.9vendor/expat
Notes
Notes:
svn path=/vendor/expat/dist/; revision=355071
Diffstat (limited to 'xmlwf/xmlwf_helpgen.sh')
-rwxr-xr-x | xmlwf/xmlwf_helpgen.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/xmlwf/xmlwf_helpgen.sh b/xmlwf/xmlwf_helpgen.sh new file mode 100755 index 000000000000..6b0fbf929a09 --- /dev/null +++ b/xmlwf/xmlwf_helpgen.sh @@ -0,0 +1,35 @@ +#! /usr/bin/env bash +# __ __ _ +# ___\ \/ /_ __ __ _| |_ +# / _ \\ /| '_ \ / _` | __| +# | __// \| |_) | (_| | |_ +# \___/_/\_\ .__/ \__,_|\__| +# |_| XML parser +# +# Copyright (c) 2019 Expat development team +# Licensed under the MIT license: +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to permit +# persons to whom the Software is furnished to do so, subject to the +# following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +# USE OR OTHER DEALINGS IN THE SOFTWARE. + +./xmlwf/xmlwf_helpgen.py | sed \ + -e 's,usage: xmlwf,usage: %s,' \ + -e 's, \[-h | -v\],,' \ + -e 's,^, T(",' \ + -e 's,$,\\n"),' |