summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-04-22 17:16:14 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-04-22 17:16:37 (EDT)
commitcb074214309097382fdb064c09b9e7045512a979 (patch)
tree2afc8009d741d3108f8d5238ee451141c8e4061e
parent75018f81f7fa1e486c7965238f047a6ab8706c06 (diff)
Move definitions of OH_SRCPKG and OH_PKGVER.
-rw-r--r--src/opkbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index c942eb7..efec272 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -174,6 +174,8 @@ cd tmp
printf 'opkbuild: Reading source package control fields...\n'
srcpkg=$(oh_get_field Source)
version=$(oh_get_field Version)
+export OH_SRCPKG="${srcpkg}"
+export OH_PKGVER=${version}
# Set environment variables for the build configuration.
export OH_HOST_PLATFORM="${platform}"
@@ -182,8 +184,6 @@ IFS=- read OH_HOST_ARCH_CPU OH_HOST_ARCH_KERNEL OH_HOST_ARCH_LIBS <<EOF
${OH_HOST_ARCH_DIST}
EOF
export OH_HOST_ARCH_CPU OH_HOST_ARCH_KERNEL OH_HOST_ARCH_LIBS
-export OH_SRCPKG="${srcpkg}"
-export OH_PKGVER=${version}
# Set build flags.
if [ -f "@@DATADIR@@/opkhelper/buildflags/${OH_HOST_ARCH_CPU}" ]; then