]> git.draconx.ca Git - dxcommon.git/commitdiff
gettext.mk: Fix installation rules with some shells.
authorNick Bowler <nbowler@draconx.ca>
Tue, 21 Nov 2023 03:57:23 +0000 (22:57 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 21 Nov 2023 05:28:35 +0000 (00:28 -0500)
The following syntax is not portable to certain shells:

  for f in ; do stuff; done

When no translations are installed, a command just like this is
generated in the installation rules.  Instead of doing nothing
as desired, HP-UX 11 /bin/sh, heirloom-sh, and presumably also
old Solaris /bin/sh will exit with an error.

To work around this problem, we can stuff the list into a shell
variable and then use that in the for loop.


No differences found