summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-08 18:35:21 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-08 18:35:21 (EDT)
commiteb683dcb0c0163b7d420b4f4e2f0b3587fd8f532 (patch)
tree636e18a62cb79291e81b089fbb26eb5c16d0e84f
parentd1672ee53a307cd0900989545051467800534cdf (diff)
Standardize use of quotes in configure.
-rw-r--r--configure22
1 files changed, 11 insertions, 11 deletions
diff --git a/configure b/configure
index 4db98ee..5d8a344 100644
--- a/configure
+++ b/configure
@@ -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