lisp: fix a failure with Solaris /usr/xpg4/bin/sh
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 May 2013 11:35:16 +0000 (13:35 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 May 2013 11:38:01 +0000 (13:38 +0200)
commit0256f1d66ff28cfcef895eb72b15e40e6de442e0
tree18b9a2db585a6bbb9626e0433a812e7737db9cca
parent84e12c32964ef8454be946b4b2eeb46766ca9add
lisp: fix a failure with Solaris /usr/xpg4/bin/sh

* lib/am/lisp.am (.el.elc): By initializing the 'am__dir' properly
here.  For most shells, the lacking initialization, while technically
incorrect, didn't cause any issue in practice, because in those shells
"test -d" returns an exit status of 0. But with /usr/xpg4/bin/sh, the
shell complains like this: "test: argument expected", and returns a
non-zero exit status.  This caused testsuite failures in several lisp
tests.
Also, while we are at it, use more proper quoting in the recipe, to
ensure a missing initialization to now be caught by more forgiving
shells as well.
* NEWS: Update.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
NEWS
lib/am/lisp.am