In for loop values, introduce a dummy to protect against empty list
authorRichard Levitte <levitte@openssl.org>
Mon, 21 Mar 2016 07:11:14 +0000 (08:11 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 21 Mar 2016 15:11:12 +0000 (16:11 +0100)
commit2b364f615bbe913ba9121ddb4018da505b407882
treec81834d864ad26790829442abcaffee2c03066af
parent8d9fb8c8dbdaad8c7e6009c96618b17aac9662b9
In for loop values, introduce a dummy to protect against empty list

In constructions such as 'for x in $(MAKEVAR); do ...', there's the
possibility that $(MAKEVAR) is en empty value.  Some shells don't like
that, so introduce a dummy value that gets discarded:

    for x in dummy $(MAKEVAR); do
        if [ "$$x" = "dummy" ]; then continue; fi

Closes RT#4459

Reviewed-by: Rich Salz <rsalz@openssl.org>
Configurations/unix-Makefile.tmpl