diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-02-14 12:10:49 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-02-14 12:15:07 +0000 |
commit | c3bcd77642eef559476e518f3dd95f7837d9e109 (patch) | |
tree | 6ef9acb7d222fd58ec1a3efab990e117f05687e3 /subr/build_args.subr | |
parent | 0053baf6109f0e8d5fa887b0f98d6ea40ccd6dfa (diff) | |
download | midipix_build-c3bcd77642eef559476e518f3dd95f7837d9e109.tar.bz2 midipix_build-c3bcd77642eef559476e518f3dd95f7837d9e109.tar.xz |
etc/README: updated.
groups/231.native_packages_etc.group:apr_util:${PKG_MAKEFLAGS_BUILD}: build w/ -j1.
subr/{build_{args,init},ex_rtl{,_complex}}.subr: minor cleanup.
subr/{build_args,ex_rtl}.subr: purge leading whitespaces.
Diffstat (limited to 'subr/build_args.subr')
-rw-r--r-- | subr/build_args.subr | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/subr/build_args.subr b/subr/build_args.subr deleted file mode 100644 index c41a16f3..00000000 --- a/subr/build_args.subr +++ /dev/null @@ -1,53 +0,0 @@ -# -# set -o noglob is assumed. -# - -build_args() { - local _opt="" _shiftfl=0; - while [ "${#}" -gt 0 ]; do - case "${1}" in - --as-needed) ARG_AS_NEEDED=1; _shiftfl=1; ;; - --debug-minipx) ARG_DEBUG_MINIPIX=1; _shiftfl=1; ;; - -v*) _opt="${1#-}"; while [ -n "${_opt}" ]; do - : $((ARG_VERBOSE+=1)); _opt="${_opt#?}"; - done; _shiftfl=1; ;; - *) _shiftfl=0; ;; - esac; - if [ "${_shiftfl}" -gt 0 ]; then - shift "${_shiftfl}"; continue; - elif getopts a:b:C:D:FhPr:R _opt; then - case "${_opt}" in - a) ARCH="${OPTARG}"; ;; - b) BUILD="${OPTARG}"; ;; - C) ARG_CLEAN_BUILDS="${OPTARG}"; ;; - D) ARG_DIST="${OPTARG}"; ;; - F) ARG_FETCH_FORCE=1; ;; - h) cat etc/build.usage; exit 0; ;; - P) ARG_PARALLEL="${OPTARG:-auto}"; ;; - r) ARG_RESTART="${OPTARG}"; ;; - R) ARG_RELAXED=1; ;; - *) cat etc/build.usage; exit 1; ;; - esac; shift $((${OPTIND}-1)); - else - break; - fi; - done; - if [ -n "${ARG_RESTART}" ]\ - && [ "${ARG_RESTART#\*}" != "${ARG_RESTART}" ]; then - ARG_RESTART="${ARG_RESTART#\*}"; ARG_RESTART_RECURSIVE=1; - fi; - case "${ARG_RESTART}" in - ALL) ARG_RESTART_AT=ALL; ;; - LAST) ARG_RESTART_AT=""; ;; - "") ;; - *:*) ARG_RESTART_AT="${ARG_RESTART#*:}"; ARG_RESTART="${ARG_RESTART%:*}"; ;; - *) ARG_RESTART="$(echo "${ARG_RESTART}" | sed "s/,/ /g")"; ARG_RESTART_AT=ALL; ;; - esac; - while [ ${#} -gt 0 ]; do - case "${1}" in - *=*) ex_rtl_set_var_unsafe "${1%%=*}" "${1#*=}"; ;; - *) BUILD_GROUPS="${BUILD_GROUPS:+${BUILD_GROUPS} }${1}"; ;; - esac; shift; done; -}; - -# vim:filetype=sh |