diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-02 18:36:56 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-02 18:36:56 (EDT) |
commit | dcf9e96aa3a3530b6f0e6afba8dc0c102b89dd51 (patch) | |
tree | 7cc6010e62dc3800b085d46783630fbe0573737a /src/package.sh | |
parent | 6adc62fcdae9d61358ce6fc9fae919d5cbc75156 (diff) |
Prefix "static" vars with "_"
Diffstat (limited to 'src/package.sh')
-rw-r--r-- | src/package.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/package.sh b/src/package.sh index 0be96fb..8f71e9f 100644 --- a/src/package.sh +++ b/src/package.sh @@ -18,26 +18,26 @@ # along with the ProteanOS Development Kit. If not, see # <http://www.gnu.org/licenses/>. -package_dir= -package_format= +_package_dir= +_package_format= package_init() { local dir="${1}" shift 1 - package_dir="${dir}" + _package_dir="${dir}" - package_format='' - if [ -r "${package_dir}/format" ]; then - case "$(cat -- "${package_dir}/format")" in + _package_format='' + if [ -r "${_package_dir}/format" ]; then + case "$(cat -- "${_package_dir}/format")" in 2.*) - package_format=2 + _package_format=2 ;; esac fi - if [ "x${package_format}" = 'x' ]; then + if [ "x${_package_format}" = 'x' ]; then error "$(get_msg 'package_format_unknown')" return 1 fi @@ -51,7 +51,7 @@ package_get_build_deps() local plat="${2}" shift 2 - "package_${package_format}_get_build_deps" "${arch}" "${plat}" + "package_${_package_format}_get_build_deps" "${arch}" "${plat}" } package_set_substvars() @@ -60,5 +60,5 @@ package_set_substvars() local plat="${2}" shift 2 - "package_${package_format}_set_substvars" "${arch}" "${plat}" + "package_${_package_format}_set_substvars" "${arch}" "${plat}" } |