diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-23 23:46:58 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-23 23:46:58 (EDT) |
commit | 399adfd4e44a84b7ca664703240be40d4bc23528 (patch) | |
tree | a21b276d7096f03c8586a91af2b7fd1b077e0e75 /lib/package | |
parent | cd8d946a86d0730244badfc79c18c6f3e914ee62 (diff) | |
parent | ac831a4fb9a65678fb80d3c22b9db72c7140a3d7 (diff) |
Merge branch 'feature/substvars'.
Diffstat (limited to 'lib/package')
-rw-r--r-- | lib/package/2.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/package/2.sh b/lib/package/2.sh index 745369f..d9f049a 100644 --- a/lib/package/2.sh +++ b/lib/package/2.sh @@ -153,3 +153,30 @@ EOF _ob_return 0 return ${?} } + +_ob_set_package_substvars_2() +{ + _ob_local _obspsv2_pkg + + if [ ${#} -eq 1 ]; then + _obspsv2_pkg="${1}" + else + _ob_return 125 + return ${?} + fi + + ob_parse_control "${_OB_PACKAGE_DIR}/substvars" _ob_substvar_2 + + ob_set_substvar 'Source-Version' "$(ob_get_source_parameter 'Version')" + ob_set_substvar 'Binary-Version' "$(ob_get_source_parameter 'Version')" +} + +_ob_substvar_2() +{ + _ob_local + + ob_set_substvar "${OB_CONTROL_NAME}" "${OB_CONTROL_VALUE}" + + _ob_return 0 + return ${?} +} |