Makefile: fix shell quoting
authorJunio C Hamano <gitster@pobox.com>
Fri, 25 Jul 2008 19:35:10 +0000 (12:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Jul 2008 19:36:16 +0000 (12:36 -0700)
Makefile records paths to a few programs in GIT-BUILD-OPTIONS file. These
paths need to be quoted twice: once to protect specials from the shell
that runs the generated GIT-BUILD-OPTIONS file, and again to protect them
(and the first level of quoting itself) from the shell that runs the
"echo" inside the Makefile.

You can test this by trying:

$ ln -s /bin/tar "$HOME/Tes' program/tar"
$ make TAR="$HOME/Tes' program/tar" test

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found