chiark / gitweb /
i18n: Call po/Makefile directly from debian/rules
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 29 Sep 2018 00:50:09 +0000 (01:50 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 29 Sep 2018 11:48:13 +0000 (12:48 +0100)
This makefile likes to dirty things quite a bit, since that's how
gettext seems to like to work.  In our call from debian/rules, we
avoid that.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
debian/dgit.install [new file with mode: 0644]
debian/git-debrebase.install [new file with mode: 0644]
debian/rules

index a635e97..3f10beb 100644 (file)
@@ -1,5 +1,6 @@
 *~
 tests/tmp
+debian/tmp
 debian/dgit
 debian/git-debrebase
 debian/dgit-infrastructure
@@ -7,6 +8,7 @@ debian/files
 debian/*.substvars
 debian/*.log
 debian/debhelper-build-stamp
+debian/.debhelper
 dgit-user.7
 dgit-nmu-simple.7
 dgit-maint-native.7
diff --git a/debian/dgit.install b/debian/dgit.install
new file mode 100644 (file)
index 0000000..6607000
--- /dev/null
@@ -0,0 +1 @@
+usr/share/locale/*/LC_MESSAGES/dgit.mo
diff --git a/debian/git-debrebase.install b/debian/git-debrebase.install
new file mode 100644 (file)
index 0000000..173a235
--- /dev/null
@@ -0,0 +1 @@
+usr/share/locale/*/LC_MESSAGES/git-debrebase.mo
index baff8f8..614fb7a 100755 (executable)
@@ -30,10 +30,16 @@ override_dh_gencontrol:
         v=$$(perl -ne 'print if s/^version:\s+//i' DEBIAN/control); \
         perl -i -pe "s/UNRELEASED/$$v/g if m/###substituted###/" usr/bin/dgit
 
+override_dh_auto_clean:
+       dh_auto_clean
+       make -C po clean
+
 globalperl=/usr/share/perl5
 
 override_dh_auto_install: specpkg_install_gdr specpkg_install_infra
        make install prefix=/usr DESTDIR=debian/dgit
+       make -C po install prefix=/usr DESTDIR=../debian/tmp \
+               SUPPRESS_PO_UPDATE=1 S=''
 
 specpkg_install_gdr: p=git-debrebase
 specpkg_install_gdr: pm=GDR