From 0f05a8b7989ee2ed0a697e469f9b27e7b9350061 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 14 Jun 2013 21:03:32 -0400 Subject: bootstrap-prepare.sh: Make multiarch dir links. --- diff --git a/bootstrap-prepare.sh b/bootstrap-prepare.sh index 0a4fd98..21ec70c 100755 --- a/bootstrap-prepare.sh +++ b/bootstrap-prepare.sh @@ -38,6 +38,7 @@ main() prepare_packages_from_git prepare_packages_from_ftp patch_packages + prepare_file_system } log() @@ -127,4 +128,21 @@ patch_packages() cd .. } +prepare_file_system() +{ + local ma dir + + if ma=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null); then + log 'Making multiarch directory links...' + for dir in /lib /usr/lib /usr/include; do + if [ ! -e "${dir}/${ARCH}" ]; then + printf '%s/%s -> %s\n' \ + "${dir}" "${ARCH}" "${ma}" + sudo ln -s "${ma}" "${dir}/${ARCH}" + fi + done + printf '\n' + fi +} + main "${@}" -- cgit v0.9.1