diff options
-rw-r--r-- | configure | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -33,8 +33,8 @@ localedir='$(datadir)/locale' libopkbuild='$(libdir)/libopkbuild.1' metadata='proteanos' -quiet=false -missing_deps=false +quiet='false' +missing_deps='false' dep_cmds=' sh opkg @@ -65,7 +65,7 @@ main() parse_options "${@}" for dep in ${dep_cmds}; do - dep_val=$(eval echo \$\{"${dep}"\}) + dep_val="$(eval echo \$\{"${dep}"\})" if [ -z "${dep_val}" ]; then find_dep_cmd "${dep}" fi @@ -141,7 +141,7 @@ parse_options() # Handle arguments of "--opt arg" options. if [ -n "${_prev}" ]; then eval "${_prev}"=\"\$\{_opt\}\" - _prev= + _prev='' continue fi @@ -150,10 +150,10 @@ parse_options() *=*) _optarg="${_opt#*=}" _opt="${_opt%=*}" - _optarg_set=true + _optarg_set='true' ;; *) - _optarg_set=false + _optarg_set='false' ;; esac @@ -171,7 +171,7 @@ parse_options() exit 0 ;; -q|--quiet) - quiet=true + quiet='true' continue ;; esac @@ -181,12 +181,12 @@ parse_options() --with-*) _opt="${_opt#--with-}" _opts="${features}" - _type=package + _type='package' ;; --*) _opt="${_opt#--}" _opts="${long_opts_with_args}" - _type=option + _type='option' ;; *) printf 'unrecognized option: %s\n' "${_opt}" >&2 @@ -232,14 +232,14 @@ find_dep_cmd() IFS="${_old_ifs}" ${quiet} || printf 'not found\n' - missing_deps=true + missing_deps='true' return 1 } write_makefiles() { # Make a script to edit input makefiles. - _sed_script= + _sed_script='' for _var in ${subst_vars}; do _sed_script="${_sed_script}s&@${_var}@&$(eval echo \$\{"${_var}"\})&g;" done |