diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-16 13:31:05 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-16 13:31:05 (EDT) |
commit | 28fe46a144f470ab3d1c7a0b9cae5f88fa5bb97f (patch) | |
tree | f1f6190dd2caf279f56dbb69a00ce86761eec753 | |
parent | 7731c7323c8f9602653dbd14c9619bb203060b37 (diff) |
Add host platform to opk file names.
-rw-r--r-- | src/ob-buildopk.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh index 6f57c50..ede9f5b 100644 --- a/src/ob-buildopk.sh +++ b/src/ob-buildopk.sh @@ -39,7 +39,9 @@ main() for pkg in ${OPK_PACKAGES}; do arch="$(ob_get_binary_parameter "${pkg}" 'Architecture')" [ "${arch}" != 'all' ] && arch="${OPK_HOST_ARCH}" - build_opk "${pkg}" "${OPK_BINARY_VERSION}" "${arch}" + plat="$(ob_get_binary_parameter "${pkg}" 'Platform')" + [ "${plat}" != 'all' ] && plat="${OPK_HOST_PLAT}" + build_opk "${pkg}" "${OPK_BINARY_VERSION}" "${arch}" "${plat}" done fi rm 'debian-binary' @@ -50,11 +52,12 @@ build_opk() binary="${1}" version="${2}" arch="${3}" + plat="${4}" (cd "${binary}.data" && tar -czf '../data.tar.gz' '.') (cd "${binary}.control" && tar -czf '../control.tar.gz' '.') - tar -czf "../../${binary}_${version}_${arch}.opk" \ + tar -czf "../../${binary}_${version}_${arch}_${plat}.opk" \ 'debian-binary' 'data.tar.gz' 'control.tar.gz' rm -Rf 'data.tar.gz' 'control.tar.gz' } |