From e644fc98d1e9cd72e75ec40ab5fb779dac71f6d1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 28 Feb 2014 13:23:45 -0500 Subject: Use new build system macros in source files. --- (limited to 'lib') diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh index ffdba86..0369700 100644 --- a/lib/buildsystem.sh +++ b/lib/buildsystem.sh @@ -155,7 +155,7 @@ oh_buildsystem_arch() fi # Try to find a suitable build system host arch. - for bs_arch in $(cat '@@ARCHTABDIR@@/'"${arch}/${system}") + for bs_arch in $(cat '@archtabdir@/'"${arch}/${system}") do if oh_buildsystem_do 'testarch' "${system}" "${bs_arch}" then diff --git a/lib/buildsystem/autoconf.sh b/lib/buildsystem/autoconf.sh index 7ec8938..4443737 100644 --- a/lib/buildsystem/autoconf.sh +++ b/lib/buildsystem/autoconf.sh @@ -48,7 +48,7 @@ _oh_autoconf_configure() "${_OH_BUILDSYSTEM_TARGET_ARCH}" 'autoconf')" fi - if [ '@@MULTIARCH_LIBDIR@@' = 'true' ]; then + if [ '@multiarch_libdir@' = 'true' ]; then libdir='${prefix}/lib/'"${OPK_HOST_ARCH}" else libdir='${prefix}/lib/' diff --git a/lib/load.sh b/lib/load.sh index a21ca52..d537b4b 100644 --- a/lib/load.sh +++ b/lib/load.sh @@ -22,7 +22,7 @@ _OH_LOAD_SM=1 # The "common" module is used by this and all other modules. # We have to manually load the "common" module so we can use it in oh_use. -. '@@PKGLIBDIR@@/common.sm' +. '@pkgdatadir@/common.sm' oh_use() { @@ -34,7 +34,7 @@ oh_use() return 125 fi - module='@@PKGLIBDIR@@'"/${module}.sm" + module='@pkgdatadir@'"/${module}.sm" if [ -r "${module}" ]; then . "${module}" else diff --git a/lib/locale.sh b/lib/locale.sh index 1ac543b..5601364 100644 --- a/lib/locale.sh +++ b/lib/locale.sh @@ -24,7 +24,7 @@ oh_use output _OH_DEFAULT_LOCALE='en_US' _OH_TEXT_DOMAIN='opkhelper' -_OH_LOCALE_PATH='@@LOCALEDIR@@/%s/LC_MESSAGES/%s.ms' +_OH_LOCALE_PATH='@localedir@/%s/LC_MESSAGES/%s.ms' oh_load_locale() { -- cgit v0.9.1