]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Preparing the debian/compile-messages stuff.
authorThomas Goirand <thomas@goirand.fr>
Sat, 11 Oct 2014 07:54:58 +0000 (07:54 +0000)
committerThomas Goirand <thomas@goirand.fr>
Sat, 11 Oct 2014 07:54:58 +0000 (07:54 +0000)
Rewritten-From: 7418550bc1ab830c51bd36c7fca484468eb972ba

xenial/debian/compile-messages [new file with mode: 0755]
xenial/debian/rules

diff --git a/xenial/debian/compile-messages b/xenial/debian/compile-messages
new file mode 100755 (executable)
index 0000000..4079622
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+set -x
+
+CURDIR=`pwd`
+cd horizon
+${CURDIR}/manage.py compilemessages
+cd ..
+cd openstack_dashboard
+${CURDIR}/manage.py compilemessages
+cd ..
+rm -vf horizon/locale/en/LC_MESSAGES/django*.mo
+rm -vf openstack_dashboard/locale/en/LC_MESSAGES/django.mo
index 1d9eb9a2cb480cdfa821e8eeb93f51bdbf0cec9f..41b4ee4f3abb31f668a52b3484d60abdf9b10a51 100755 (executable)
@@ -9,6 +9,9 @@ export OSLO_PACKAGE_VERSION=$(VERSION)
        dh $@ --with python2
 
 override_dh_auto_install:
+       #chmod +x debian/compile-messages
+       #$(CURDIR)/debian/compile-messages
+
        set -e && for pyvers in $(PYTHONS); do \
                python$$pyvers setup.py install \
                        --install-layout=deb \