diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | sos/__init__.py.in (renamed from sos/__init__.py) | 1 | ||||
-rwxr-xr-x | sos/sosreport.py | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -37,6 +37,7 @@ install: install -m644 LICENSE README TODO $(DESTDIR)/usr/share/$(NAME)/. install -m644 $(NAME).conf $(DESTDIR)/etc/$(NAME).conf install -m644 gpgkeys/rhsupport.pub $(DESTDIR)/usr/share/$(NAME)/. + sed 's/@SOSVERSION@/$(VERSION)/g'<sos/__init__.py.in >sos/__init__.py for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done $(NAME)-$(VERSION).tar.gz: clean gpgkey diff --git a/sos/__init__.py b/sos/__init__.py.in index 335332b1..64b87506 100644 --- a/sos/__init__.py +++ b/sos/__init__.py.in @@ -22,5 +22,6 @@ gettext_app = "sos" gettext.bindtextdomain(gettext_app, gettext_dir) +__version__="@SOSVERSION@" def _sos(msg): return gettext.dgettext(gettext_app, msg) diff --git a/sos/sosreport.py b/sos/sosreport.py index a5685b9e..ccacdff4 100755 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -46,8 +46,8 @@ from itertools import * from collections import deque from sos import _sos as _ +from sos import __version__ -__version__ = 2.1 if os.path.isfile('/etc/fedora-release'): __distro__ = 'Fedora' else: |