@@ -240,38 +240,38 @@ need_ok "can't run these binaries on this platform"
240
240
# FIXME: Hardcoded 'rustlib' ignores CFG_RUSTLIBDIR
241
241
if [ -f "${CFG_PREFIX}/lib/rustlib/manifest" ]
242
242
then
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"
248
248
249
249
# 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"
253
253
fi
254
254
255
255
# If we're only uninstalling then exit
256
256
if [ -n "${CFG_UNINSTALL}" ]
257
257
then
258
- exit 0
258
+ exit 0
259
259
fi
260
260
261
261
# Iterate through the new manifest and install files
262
262
while read p; do
263
263
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"
275
275
276
276
# The manifest lists all files to install
277
277
done < "${CFG_SRC_DIR}/lib/rustlib/manifest"
0 commit comments