Skip to content

Commit

Permalink
Update configure
Browse files Browse the repository at this point in the history
Summary: use echo in portable way

`\n` is not expanded here, alternative is to use `printf "%s\n" "$0"`, but this is simplier
Closes #5136

Reviewed By: @paulbiss

Differential Revision: D1970258
  • Loading branch information
glensc authored and hhvm-bot committed Apr 6, 2015
1 parent 2b868b2 commit ea04e4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Expand Up @@ -3,7 +3,8 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"


if [ "$1" = '--help' ] || [ "$1" = '-h' ]; then if [ "$1" = '--help' ] || [ "$1" = '-h' ]; then
echo "usage: $0 -Dvariable=argument ...\n" echo "usage: $0 -Dvariable=argument ..."
echo ''
echo 'Variables: ' echo 'Variables: '
options=`cat $DIR/CMake/Options.cmake | grep option | sed -e 's/^[ \t]*//' | options=`cat $DIR/CMake/Options.cmake | grep option | sed -e 's/^[ \t]*//' |
sed 's/\s*option(/ -D/; s/ "/=ON|OFF : /; sed 's/\s*option(/ -D/; s/ "/=ON|OFF : /;
Expand Down

1 comment on commit ea04e4f

@thaiyathan

This comment was marked as off-topic.

Please sign in to comment.