summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2008-08-07 21:00:22 -0400
committerAdrian Likins <alikins@redhat.com>2008-08-07 21:00:22 -0400
commit1108fa9622d419cbff98bcf1e00d3445686eeb6d (patch)
treeeb51754bea1931a86cb774a153ecf48385485fb7 /Makefile
parentd5f6797eadc02012e699d8850d6967d922f92b1f (diff)
downloadfunc-1108fa9622d419cbff98bcf1e00d3445686eeb6d.zip
func-1108fa9622d419cbff98bcf1e00d3445686eeb6d.tar.gz
func-1108fa9622d419cbff98bcf1e00d3445686eeb6d.tar.xz
fix up the code to generate the message catagalogs a bit.
We do not currently have very good message tagging at the moment, however, which needs to be fix.
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bc29bad..4fbfdb3 100755
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,10 @@ NEWRELEASE = $(shell echo $$(($(RELEASE) + 1)))
MESSAGESPOT=po/messages.pot
+# file to get translation strings from, little ugly, but it works
+POTFILES = func/*.py func/overlord/*.py func/minion/*.py func/minion/modules/*.py \
+ func/overlord/cmd_modules/*.py func/overlord/modules/*.py
+
TOPDIR = $(shell pwd)
DIRS = func docs examples scripts test test/unittest funcweb
PYDIRS = func scripts examples funcweb
@@ -19,8 +23,8 @@ manpage:
pod2man --center="func-inventory" --release="" ./docs/func-inventory.pod | gzip -c > ./docs/func-inventory.1.gz
pod2man --center="func-transmit" --release="" ./docs/func-transmit.pod | gzip -c > ./docs/func-transmit.1.gz
-messages: func/minion/*.py
- xgettext -k_ -kN_ -o $(MESSAGESPOT) func/minion/*.py
+messages:
+ xgettext -k_ -kN_ -o $(MESSAGESPOT) $(POTFILES)
sed -i'~' -e 's/SOME DESCRIPTIVE TITLE/func/g' -e 's/YEAR THE PACKAGE'"'"'S COPYRIGHT HOLDER/2007 Red Hat, inc. /g' -e 's/FIRST AUTHOR <EMAIL@ADDRESS>, YEAR/Adrian Likins <alikins@redhat.com>, 2007/g' -e 's/PACKAGE VERSION/func $(VERSION)-$(RELEASE)/g' -e 's/PACKAGE/func/g' $(MESSAGESPOT)