diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-13 22:49:06 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-13 22:49:06 (EDT) |
commit | ccf34b180ac777d2b0c0b3f58515a83393194fba (patch) | |
tree | dfdc759ade5f973c637af038b57d59cdd67e9c34 /src/include.sh | |
parent | 5246ba1008d4e5d0edd82c37a791c82574940e1e (diff) |
_include_changes_field(): Move before use
Diffstat (limited to 'src/include.sh')
-rw-r--r-- | src/include.sh | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/include.sh b/src/include.sh index b45b584..1da053b 100644 --- a/src/include.sh +++ b/src/include.sh @@ -29,6 +29,31 @@ _include_version= _include_distribution= _include_files= +_include_changes_field() +{ + local name="${1}" + local value="${2}" + shift 2 + + case "${name}" in + 'Format') + _include_format="${value}" + ;; + 'Source') + _include_source="${value}" + ;; + 'Version') + _include_version="${value}" + ;; + 'Distribution') + _include_distribution="${value}" + ;; + 'Files') + _include_files="${value}" + ;; + esac +} + include_changes() { local changes="${1}" @@ -151,28 +176,3 @@ include_changes() printf '%s\n' ${files} return 0 } - -_include_changes_field() -{ - local name="${1}" - local value="${2}" - shift 2 - - case "${name}" in - 'Format') - _include_format="${value}" - ;; - 'Source') - _include_source="${value}" - ;; - 'Version') - _include_version="${value}" - ;; - 'Distribution') - _include_distribution="${value}" - ;; - 'Files') - _include_files="${value}" - ;; - esac -} |