diff options
Diffstat (limited to 'src')
-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 -} |