From b69fea84f6e73a6d51bd8e3757f6385ed34758cc Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 22 Apr 2012 18:56:50 -0400 Subject: Use new OH_HOST_* variables in oh-copyconfig. --- diff --git a/src/oh-copyconfig.sh b/src/oh-copyconfig.sh index 4bd3871..2f337f8 100644 --- a/src/oh-copyconfig.sh +++ b/src/oh-copyconfig.sh @@ -35,7 +35,7 @@ if [ ! -f ../config ]; then exit 0 fi -if [ -z "${OH_PLATFORM}" ]; then +if [ -z "${OH_HOST_PLATFORM}" ]; then error 'No target platform defined' fi @@ -64,10 +64,10 @@ while read -r type src dest; do # Make sure the destination directory exists. mkdir -p "$(dirname "${full_dest}")" # Find the config package files. - if [ -d "/usr/share/config/${OH_PLATFORM}/${OH_SRCPKG}-${OH_PKGVER}" ]; then - full_src="/usr/share/config/${OH_PLATFORM}/${OH_SRCPKG}-${OH_PKGVER}/${src}" - elif [ -d "/usr/share/config/${OH_PLATFORM}/${OH_SRCPKG}" ]; then - full_src="/usr/share/config/${OH_PLATFORM}/${OH_SRCPKG}/${src}" + if [ -d "/usr/share/config/${OH_HOST_PLATFORM}/${OH_SRCPKG}-${OH_PKGVER}" ]; then + full_src="/usr/share/config/${OH_HOST_PLATFORM}/${OH_SRCPKG}-${OH_PKGVER}/${src}" + elif [ -d "/usr/share/config/${OH_HOST_PLATFORM}/${OH_SRCPKG}" ]; then + full_src="/usr/share/config/${OH_HOST_PLATFORM}/${OH_SRCPKG}/${src}" else # This shouldn't happen unless the package maintainer neglected to add # the config package to the package's Build-Depends field. -- cgit v0.9.1