Code

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)
commitbfce5087ee01fdead5cdc52180c8eef22adbbd71
treeb38a930d7da004996bda676e3d6679bcb1df3bfc
parentc30e699fc509f43f459c17d3148e7d866fb9157a
Makefile: fix shell quoting

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>
Makefile
t/t5000-tar-tree.sh