summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-05-25 17:40:23 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-05-25 17:40:23 -0400
commit201e727a1fc571f3a56763dc044a58504cc89af6 (patch)
treed0022b589fdfb386c288ceabc0ed1eca535f1800 /Makefile
parentfd989ad95135e5e018cf69966be60ee99c9b6280 (diff)
downloadthird_party-cobbler-201e727a1fc571f3a56763dc044a58504cc89af6.zip
third_party-cobbler-201e727a1fc571f3a56763dc044a58504cc89af6.tar.gz
third_party-cobbler-201e727a1fc571f3a56763dc044a58504cc89af6.tar.xz
Starting to add i18n to cobbler using rhpl
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6fa532a..769bbb0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+MESSAGESPOT=po/messages.pot
+
all: rpms
clean:
@@ -15,15 +17,20 @@ test:
python tests/tests.py
-rm -rf /tmp/_cobbler-*
-build: clean
+build: clean messages
python setup.py build -f
install: clean
python setup.py install -f
-sdist: clean
+sdist: clean messages
python setup.py sdist
+messages: cobbler/*.py
+ xgettext -k_ -kN_ -o $(MESSAGESPOT) cobbler/*.py
+ sed -i'~' -e 's/SOME DESCRIPTIVE TITLE/cobbler/g' -e 's/YEAR THE PACKAGE'"'"'S COPYRIGHT HOLDER/2007 Red Hat, Inc. /g' -e 's/FIRST AUTHOR <EMAIL@ADDRESS>, YEAR/Michael DeHaan <mdehaan@redhat.com>, 2007/g' -e 's/PACKAGE VERSION/cobbler $(VERSION)-$(RELEASE)/g' -e 's/PACKAGE/cobbler/g' $(MESSAGESPOT)
+
+
rpms: manpage sdist
mkdir -p rpm-build
cp dist/*.gz rpm-build/