summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-03 16:14:26 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-03 16:14:26 (EDT)
commit32a27fc64fbedbb79c4375a62e4d23b8137b1324 (patch)
tree36742f0ced6e0de562fdbe3e3a246b097f0bd645
parent11f45e92ad0197f90a70dd27bee470513c683a0f (diff)
Set OB_SOURCE, OB_SOURCE_VERSION, etc.
-rw-r--r--src/opkbuild.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 996771c..c6d371f 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -74,6 +74,10 @@ main()
ob_info "$(ob_get_msg 'parse_package_metadata')"
ob_init_package '..'
ob_parse_package_metadata -c '.opkbuild.cache'
+ OB_SOURCE="$(ob_get_source_parameter 'Source')"
+ OB_SOURCE_VERSION="$(ob_get_source_parameter 'Version')"
+ ob_parse_version -u 'OB_SOURCE_VERSION_UPSTREAM' "${OB_SOURCE_VERSION}"
+ OB_BINARY_VERSION="$(ob_get_source_parameter 'Version')"
ob_info "$(ob_get_msg 'build_source')"
build_source