summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-14 21:03:32 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-14 21:03:32 (EDT)
commit0f05a8b7989ee2ed0a697e469f9b27e7b9350061 (patch)
tree1e38001ba12f2fc6389a26540ce7a01e91ef2695
parent70dcbfa99063e2c99b679204e321fedb357cbfd6 (diff)
bootstrap-prepare.sh: Make multiarch dir links.
-rwxr-xr-xbootstrap-prepare.sh18
1 files changed, 18 insertions, 0 deletions
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 "${@}"