Don't use "echo -n" in /bin/sh scripts on MacOSX

The shell builtin implementation of echo on MacOSX
doesn't respect the -n flag.  This is the only usage of it
in our stack so far and we can avoid it by hiding the generated
token from the linter in a different way.
Esse commit está contido em:
Daniel Sloof
2013-07-18 11:15:36 -07:00
commit de Sara Golemon
commit c494c3a145
+6 -2
Ver Arquivo
@@ -8,9 +8,13 @@ shift;
SYSTEMLIB=$INSTALL_DIR/systemlib.php
# If we put the line we're generating into this file,
# then the linter will think the generator itself
# is generated. Encode it into a variable for safe keeping.
AT="@"
echo "<?hh" > ${SYSTEMLIB}
echo -n "// @" >> ${SYSTEMLIB}
echo "generated" >> ${SYSTEMLIB}
echo "// {$AT}generated" >> ${SYSTEMLIB}
for i in $@; do
if [ ! -f "$i" ]; then