diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-11-04 21:05:12 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-11-04 21:05:12 +0400 |
commit | 8ff21ce594bdb94623f5fa969668c3be8b16b8fb (patch) | |
tree | c40c2c4194c6ec158acf1012dc58198e57d0807e | |
parent | c9d2e223016929d4a59bd4a942c7748c0535d275 (diff) | |
download | dh-illumos-8ff21ce594bdb94623f5fa969668c3be8b16b8fb.tar.gz |
Remove trailing spaces in TEXT_DOMAIN definition in usr/src/cmd/Makefile.cmd
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | dh_illumos_gate | 21 |
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. |