diff --git a/scripts/build b/scripts/build index 3b402e8410..a1618d85c8 100755 --- a/scripts/build +++ b/scripts/build @@ -445,15 +445,15 @@ export SYSROOT_PREFIX="${PKG_ORIG_SYSROOT_PREFIX}" if [ "${TARGET}" = "target" -o "${TARGET}" = "init" ]; then if [ -d ${INSTALL} ]; then - rm -rf ${INSTALL}/{usr/,}man - rm -rf ${INSTALL}/{usr/,}share/bash-completion - rm -rf ${INSTALL}/{usr/,}share/doc - rm -rf ${INSTALL}/{usr/,}share/gtk-doc - rm -rf ${INSTALL}/{usr/,}share/info - rm -rf ${INSTALL}/{usr/,}share/locale - rm -rf ${INSTALL}/{usr/,}share/man - rm -rf ${INSTALL}/{usr/,}share/zsh - rm -rf ${INSTALL}/{usr/,}var + rm -rf ${INSTALL}/{usr/local/,usr/,}man + rm -rf ${INSTALL}/{usr/local/,usr/,}share/bash-completion + rm -rf ${INSTALL}/{usr/local/,usr/,}share/doc + rm -rf ${INSTALL}/{usr/local/,usr/,}share/gtk-doc + rm -rf ${INSTALL}/{usr/local/,usr/,}share/info + rm -rf ${INSTALL}/{usr/local/,usr/,}share/locale + rm -rf ${INSTALL}/{usr/local/,usr/,}share/man + rm -rf ${INSTALL}/{usr/local/,usr/,}share/zsh + rm -rf ${INSTALL}/{usr/local/,usr/,}var find ${INSTALL} \( -name "*.orig" \ -o -name "*.rej" \ -o -name "*.o" \ diff --git a/scripts/install b/scripts/install index 5e435600ce..f4d4ea95e0 100755 --- a/scripts/install +++ b/scripts/install @@ -140,6 +140,11 @@ fi if [ -n "${PKG_INSTALL}" -a -d "${PKG_INSTALL}" ]; then tar \ -C "${PKG_INSTALL}" \ + --exclude=./usr/local/include \ + --exclude=./usr/local/lib/cmake \ + --exclude=./usr/local/lib/pkgconfig \ + --exclude=./usr/local/share/aclocal \ + --exclude=./usr/local/share/pkgconfig \ --exclude=./usr/include \ --exclude=./usr/lib/cmake \ --exclude=./usr/lib/pkgconfig \