gitinspector/version.py
Adam Waldenberg 4170c00c03 Added missing gitinspector tag to the XML output of the version flag.
This got accidentally removed when the implementation of the footer and
header functions in the format module were added.
2012-10-21 00:42:31 +02:00

40 lines
1.4 KiB
Python

# coding: utf-8
#
# Copyright © 2012 Ejwa Software. All rights reserved.
#
# This file is part of gitinspector.
#
# gitinspector is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# gitinspector is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with gitinspector. If not, see <http://www.gnu.org/licenses/>.
"""Copyright © 2012 Ejwa Software. All rights reserved.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Adam Waldenberg."""
from __future__ import print_function
__version__ = "0.1.0"
def output_html(string, _):
print("HTML output not yet supported.")
def output_text(_):
print("gitinspector {0}\n".format(__version__) + __doc__)
def output_xml():
license_text = "\t\t" + __doc__.replace("\n", "\n\t\t")
print("\t<version>" + __version__ + "</version>\n" +
"\t<license-text>\n" + license_text + "\n\t</license-text>")