]> git.draconx.ca Git - dxcommon.git/commit
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)
commitc28231ca7f98f9d1061f59d1b8f9d13490d03bae
tree73053e05b7ca719948a54e30061170bf53bb1df3
parenta54ca32593545309dcb95870a1d69bf8fcf4b8d2
gettext.mk: Fix installation rules with some shells.

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.
snippet/gettext.mk