diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-01-21 23:27:14 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-01-21 23:27:14 +0000 |
commit | ede4f55b3d13b17687720807074cbaf4de293f50 (patch) | |
tree | f5d134e55b0028968c296ff6c43a63c1f95a86e9 /src/Makefile | |
parent | 00ac51473902b95695e4224b3a22f7741ed65dbf (diff) | |
download | sos-ede4f55b3d13b17687720807074cbaf4de293f50.tar.gz |
resolves bz434626 Wrong directory structure for translations
resolves bz436053 /usr/share/sos is not owned by any package
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@551 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile index c961bbff..a49d9219 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,9 +4,9 @@ NAME = sos VERSION = 1.8 -RELEASE = 5 +#RELEASE = 6 REPO = http://svn.fedorahosted.org/svn/sos -SVNTAG = r$(subst .,-,$(VERSION))_$(RELEASE) +#SVNTAG = r$(subst .,-,$(VERSION))_$(RELEASE) SRCDIR = $(PWD) # Needs to be changed to reflect # your rpm development tree. @@ -31,7 +31,7 @@ tarball: clean mo gpgkey @echo " " @echo "The final archive is $(PWD)/dist/" -install:mo gpgkey +install:gpgkey mo python setup.py install @rm -rf build/lib @@ -41,6 +41,11 @@ clean: @rm -rf MANIFEST @rm -rfv $(TMPDIR) @rm -rf {$(SOURCE2),$(SOURCE3)} + @for i in `ls po`; do \ + if [ -d po/$$i ]; then \ + rm -rf po/$$i; \ + fi; \ + done; \ # TODO: This needs work internal-rpm: gpgkey @@ -68,11 +73,16 @@ rpm: tarball rpmbuild -ba sos.spec pot: - python tools/pygettext.py -o locale/sos.pot sosreport lib/sos/policyredhat.py + python tools/pygettext.py -o po/sos.pot sosreport lib/sos/policyredhat.py mo: @echo "Generating mo files" - find locale/*/LC_MESSAGES -name sos.po -exec python tools/msgfmt.py {} \; + @for i in `ls po`; do \ + if [ $$i != 'sos.pot' ]; then \ + mkdir po/$${i%.po}; \ + python tools/msgfmt.py -o po/$${i%.po}/sos.mo po/$$i; \ + fi; \ + done; \ gpgkey: @echo "Building gpg key" |