mozilla-b2g/gaia — pull request #4261 by mykmelez (2012-08-31 23:54:33+00:00)
Title: remove backquotes from comments so `make webapp-zip` works on Windows

On Windows (7; latest MozillaBuild with bash 3.1), `make webapp-zip` fails:

> make webapp-zip
(if [ -d ./.git ]; then \
git log -1 --format="%H%n%at" HEAD > apps/settings/gaia-commit.txt; \
else \
echo 'Unknown Git commit; build date shown here.' > apps/settings/gaia-commit.txt; \
date +%s >> apps/settings/gaia-commit.txt; \
fi)
Packaged webapps
/bin/bash: -c: line 11: unexpected EOF while looking for matching ``'
/bin/bash: -c: line 70: syntax error: unexpected end of file
make: *** [webapp-zip] Error 2

This turns out to be caused by backquoted comments:

`# include shared JS scripts`; \
`# include shared l10n resources`; \
`# include shared building blocks`; \
`# zip application` \

Removing the backquotes gets things working, and the command still works on Linux (Ubuntu; bash 4.2.24). I haven't tested Mac yet, but I expect it to behave like Linux.