gitinspector/version.py

41 lines
1.4 KiB
Python
Raw Normal View History

2012-05-04 11:40:30 +02:00
# 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.
2012-05-04 11:40:30 +02:00
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
2012-05-29 03:15:29 +02:00
__version__ = "0.1.0"
2012-05-04 11:40:30 +02:00
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>")