From 8c54555d9647a501356a1097ab181b9f37ab90dd Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Sat, 26 May 2018 13:05:11 +0100 Subject: [build] kill sos/__init__.py.in Signed-off-by: Bryn M. Reeves --- Makefile | 5 +---- sos/__init__.py.in | 30 ------------------------------ 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 sos/__init__.py.in 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 - -# 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 -- cgit