From 952380904b8e925851d96b55a959232ef360aede Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 9 Mar 2014 14:56:37 -0700 Subject: [PATCH] install.sh: untabify --- src/etc/install.sh | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/etc/install.sh b/src/etc/install.sh index eb344bb59e33..9e718a61d889 100644 --- a/src/etc/install.sh +++ b/src/etc/install.sh @@ -240,38 +240,38 @@ need_ok "can't run these binaries on this platform" # FIXME: Hardcoded 'rustlib' ignores CFG_RUSTLIBDIR if [ -f "${CFG_PREFIX}/lib/rustlib/manifest" ] then - while read p; do - msg "uninstall ${CFG_PREFIX}/$p" - rm "${CFG_PREFIX}/$p" - need_ok "failed to remove file" - done < "${CFG_PREFIX}/lib/rustlib/manifest" + while read p; do + msg "uninstall ${CFG_PREFIX}/$p" + rm "${CFG_PREFIX}/$p" + need_ok "failed to remove file" + done < "${CFG_PREFIX}/lib/rustlib/manifest" # Remove 'rustlib' directory - msg "uninstall ${CFG_PREFIX}/lib/rustlib" - rm -r "${CFG_PREFIX}/lib/rustlib" - need_ok "failed to remove rustlib" + msg "uninstall ${CFG_PREFIX}/lib/rustlib" + rm -r "${CFG_PREFIX}/lib/rustlib" + need_ok "failed to remove rustlib" fi # If we're only uninstalling then exit if [ -n "${CFG_UNINSTALL}" ] then - exit 0 + exit 0 fi # Iterate through the new manifest and install files while read p; do - umask 022 && mkdir -p "${CFG_PREFIX}/$(dirname $p)" - need_ok "directory creation failed" - - msg "${CFG_PREFIX}/$p" - if echo "$p" | grep "/bin/" > /dev/null - then - install -m755 "${CFG_SRC_DIR}/$p" "${CFG_PREFIX}/$p" - else - install -m644 "${CFG_SRC_DIR}/$p" "${CFG_PREFIX}/$p" - fi - need_ok "file creation failed" + umask 022 && mkdir -p "${CFG_PREFIX}/$(dirname $p)" + need_ok "directory creation failed" + + msg "${CFG_PREFIX}/$p" + if echo "$p" | grep "/bin/" > /dev/null + then + install -m755 "${CFG_SRC_DIR}/$p" "${CFG_PREFIX}/$p" + else + install -m644 "${CFG_SRC_DIR}/$p" "${CFG_PREFIX}/$p" + fi + need_ok "file creation failed" # The manifest lists all files to install done < "${CFG_SRC_DIR}/lib/rustlib/manifest"