1 2 3 4 5 6
if [[ ! -e ${PKG_BASE}/arch/${PKG_ARCH}/target ]]; then echo "unknown architecture: ${PKG_ARCH}" 1>&2 exit 1 fi export PKG_TARG=$(cat "${PKG_BASE}/arch/${PKG_ARCH}/target")