aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-05-26 13:05:11 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-05-26 20:59:46 +0100
commit8c54555d9647a501356a1097ab181b9f37ab90dd (patch)
tree95bc63b4963bfc3542707c4312ff4887f9308efa
parent2c04f56675b36f59ab4d4cb455efeb7d71badb74 (diff)
downloadsos-8c54555d9647a501356a1097ab181b9f37ab90dd.tar.gz
[build] kill sos/__init__.py.in
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--Makefile5
-rw-r--r--sos/__init__.py.in30
2 files changed, 1 insertions, 34 deletions
diff --git a/Makefile b/Makefile
index 30298a74..306d1dd5 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ docs:
build:
for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1 ; done
-install: updateversion
+install:
mkdir -p $(DESTDIR)/usr/sbin
mkdir -p $(DESTDIR)/usr/share/man/man1
mkdir -p $(DESTDIR)/usr/share/man/man5
@@ -52,9 +52,6 @@ install: updateversion
install -m644 $(NAME).conf $(DESTDIR)/etc/$(NAME).conf
for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
-updateversion:
- sed 's/@SOSVERSION@/$(VERSION)/g' sos/__init__.py.in > sos/__init__.py
-
$(NAME)-$(VERSION).tar.gz: clean
@mkdir -p $(ARCHIVE_DIR)
@tar -cv sosreport sos docs man po sos.conf AUTHORS LICENSE README.md sos.spec Makefile | tar -x -C $(ARCHIVE_DIR)
diff --git a/sos/__init__.py.in b/sos/__init__.py.in
deleted file mode 100644
index 08a09f47..00000000
--- a/sos/__init__.py.in
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 2010 Red Hat, Inc.
-# Author: Adam Stokes <astokes@fedoraproject.org>
-
-# This file is part of the sos project: https://github.com/sosreport/sos
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions of
-# version 2 of the GNU General Public License.
-#
-# See the LICENSE file in the source distribution for further information.
-
-
-"""
-This module houses the i18n setup and message function. The default is to use
-gettext to internationalize messages.
-"""
-
-__version__ = "@SOSVERSION@"
-
-import gettext
-gettext_dir = "/usr/share/locale"
-gettext_app = "sos"
-
-gettext.bindtextdomain(gettext_app, gettext_dir)
-
-
-def _default(msg):
- return gettext.dgettext(gettext_app, msg)
-
-_sos = _default