qb: Don't use sed.

This commit is contained in:
orbea 2017-10-25 17:16:08 -07:00
parent d540e87c3d
commit e13837fc18

View File

@ -513,6 +513,12 @@ fi
# Creates config.mk and config.h.
add_define_make GLOBAL_CONFIG_DIR "$GLOBAL_CONFIG_DIR"
VARS=$(eval set | grep ^HAVE_ | sed 's/=.*//' | sed 's/^HAVE_//')
set -- $(set | grep ^HAVE_)
while [ $# -gt 0 ]; do
tmpvar="${1%=*}"
shift 1
var="${tmpvar#HAVE_}"
VARS="${VARS} $var"
done
create_config_make config.mk $(printf %s "$VARS")
create_config_header config.h $(printf %s "$VARS")