diff options
author | Eric Blake <eblake@redhat.com> | 2013-08-19 16:26:41 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2013-08-19 20:23:39 -0600 |
commit | b2ea248ef7c715aa2a65657ed2e91968538ae07b (patch) | |
tree | 5e95ae8cd0a226d5563553f74d1e33671d0773b7 /tools/Makefile.am | |
parent | 0192fd671187c3c4834b42aa4c30fe756a042684 (diff) | |
download | libvirt-b2ea248ef7c715aa2a65657ed2e91968538ae07b.tar.gz |
virt-xml-validate: add --help/--version option
All good tools should have --help and --version output :)
Furthermore, we want to ensure a failed exit if xmllint fails,
or even for 'virt-xml-validate > /dev/full'.
* tools/virt-xml-validate.in: Add option parsing. Output errors
to stderr. Update documentation to match.
* tools/Makefile.am (virt-xml-validate): Substitute version.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r-- | tools/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am index f85c35c033..03c9fd0007 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -77,8 +77,9 @@ dist_man8_MANS = virt-sanlock-cleanup.8 endif virt-xml-validate: virt-xml-validate.in Makefile - $(AM_V_GEN)sed -e 's|[@]schemadir@|$(pkgdatadir)/schemas|' < $< > $@ \ - || (rm $@ && exit 1) && chmod +x $@ + $(AM_V_GEN)sed -e 's|[@]schemadir@|$(pkgdatadir)/schemas|g' \ + -e 's|[@]VERSION@|$(VERSION)|g' \ + < $< > $@ || (rm $@ && exit 1) && chmod +x $@ virt-xml-validate.1: virt-xml-validate.in $(top_srcdir)/configure.ac $(AM_V_GEN)$(POD2MAN) --name VIRT-XML-VALIDATE $< $(srcdir)/$@ \ |