@@ -240,38 +240,38 @@ need_ok "can't run these binaries on this platform"
240240# FIXME: Hardcoded 'rustlib' ignores CFG_RUSTLIBDIR
241241if [ -f " ${CFG_PREFIX} /lib/rustlib/manifest" ]
242242then
243- while read p; do
244- msg " uninstall ${CFG_PREFIX} /$p "
245- rm " ${CFG_PREFIX} /$p "
246- need_ok " failed to remove file"
247- done < " ${CFG_PREFIX} /lib/rustlib/manifest"
243+ while read p; do
244+ msg " uninstall ${CFG_PREFIX} /$p "
245+ rm " ${CFG_PREFIX} /$p "
246+ need_ok " failed to remove file"
247+ done < " ${CFG_PREFIX} /lib/rustlib/manifest"
248248
249249 # Remove 'rustlib' directory
250- msg " uninstall ${CFG_PREFIX} /lib/rustlib"
251- rm -r " ${CFG_PREFIX} /lib/rustlib"
252- need_ok " failed to remove rustlib"
250+ msg " uninstall ${CFG_PREFIX} /lib/rustlib"
251+ rm -r " ${CFG_PREFIX} /lib/rustlib"
252+ need_ok " failed to remove rustlib"
253253fi
254254
255255# If we're only uninstalling then exit
256256if [ -n " ${CFG_UNINSTALL} " ]
257257then
258- exit 0
258+ exit 0
259259fi
260260
261261# Iterate through the new manifest and install files
262262while read p; do
263263
264- umask 022 && mkdir -p " ${CFG_PREFIX} /$( dirname $p ) "
265- need_ok " directory creation failed"
266-
267- msg " ${CFG_PREFIX} /$p "
268- if echo " $p " | grep " /bin/" > /dev/null
269- then
270- install -m755 " ${CFG_SRC_DIR} /$p " " ${CFG_PREFIX} /$p "
271- else
272- install -m644 " ${CFG_SRC_DIR} /$p " " ${CFG_PREFIX} /$p "
273- fi
274- need_ok " file creation failed"
264+ umask 022 && mkdir -p " ${CFG_PREFIX} /$( dirname $p ) "
265+ need_ok " directory creation failed"
266+
267+ msg " ${CFG_PREFIX} /$p "
268+ if echo " $p " | grep " /bin/" > /dev/null
269+ then
270+ install -m755 " ${CFG_SRC_DIR} /$p " " ${CFG_PREFIX} /$p "
271+ else
272+ install -m644 " ${CFG_SRC_DIR} /$p " " ${CFG_PREFIX} /$p "
273+ fi
274+ need_ok " file creation failed"
275275
276276# The manifest lists all files to install
277277done < " ${CFG_SRC_DIR} /lib/rustlib/manifest"
0 commit comments