summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rwxr-xr-xdh_illumos_gate21
2 files changed, 23 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 357ea7b..1e9613a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ dh-illumos (9.5) UNRELEASED; urgency=low
* Extract usr/src/cmd/Makefile* if any path
under usr/src/cmd is being extracted
and -B option is given.
+ * Remove trailing spaces in TEXT_DOMAIN definition
+ in usr/src/cmd/Makefile.cmd
-- Igor Pashev <pashev.igor@gmail.com> Sun, 04 Nov 2012 20:04:05 +0400
diff --git a/dh_illumos_gate b/dh_illumos_gate
index b59d2c0..d03b085 100755
--- a/dh_illumos_gate
+++ b/dh_illumos_gate
@@ -256,6 +256,27 @@ if (-f $Makefile_lib) {
);
}
+=item Changes to F<usr/src/cmd/Makefile.cmd> (if extracted):
+
+ Remove trailing spaces in the line C<TEXT_DOMAIN= SUNW_OST_OSCMD >
+ Maybe we should patch GNU make to do it for us in SunOS mode.
+
+=cut
+
+my $Makefile_cmd = 'usr/src/cmd/Makefile.cmd';
+my $Makefile_cmd_orig = $Makefile_cmd . '.orig';
+if (-f $Makefile_cmd) {
+ if (! -e $Makefile_cmd_orig) {
+ doit('cp', '-f', $Makefile_cmd, $Makefile_cmd_orig);
+ }
+ doit('sed', '-r', '-i', '
+ /^TEXT_DOMAIN/ s,\s+$,,g;
+ ', $Makefile_cmd
+ );
+}
+
+
+
=item Create F<usr/env.sh> (if F<usr> exists and F<usr/env.sh> does not)
Set C<CODEMGR_WS> to the current directry.