@@ -229,15 +229,16 @@ validate_opt
229
229
230
230
# Sanity check: can we can write to the destination?
231
231
umask 022 && mkdir -p " ${CFG_LIBDIR} "
232
- need_ok " directory creation failed "
232
+ need_ok " can't write to destination. consider ` sudo ` . "
233
233
touch " ${CFG_LIBDIR} /rust-install-probe" 2> /dev/null
234
234
if [ $? -ne 0 ]
235
235
then
236
- err " can't write to destination. try again with ' sudo' ."
236
+ err " can't write to destination. consider ` sudo` ."
237
237
fi
238
238
rm " ${CFG_LIBDIR} /rust-install-probe"
239
239
need_ok " failed to remove install probe"
240
240
241
+ # The file name of the manifest we're going to create during install
241
242
INSTALLED_MANIFEST=" ${CFG_LIBDIR} /rustlib/manifest"
242
243
243
244
# First, uninstall from the installation prefix.
267
268
warn " failed to remove rustlib"
268
269
fi
269
270
else
271
+ # There's no manifest. If we were asked to uninstall, then that's a problem.
270
272
if [ -n " ${CFG_UNINSTALL} " ]
271
273
then
272
274
err " unable to find installation manifest at ${CFG_LIBDIR} /rustlib"
@@ -304,7 +306,7 @@ while read p; do
304
306
FILE_INSTALL_PATH=" ${CFG_MANDIR} /$pp "
305
307
fi
306
308
307
- # Make sure ther 's a directory for it
309
+ # Make sure there 's a directory for it
308
310
umask 022 && mkdir -p " $( dirname ${FILE_INSTALL_PATH} ) "
309
311
need_ok " directory creation failed"
310
312
@@ -330,7 +332,7 @@ while read p; do
330
332
need_ok " failed to update manifest"
331
333
332
334
# The manifest lists all files to install
333
- done < " ${CFG_SRC_DIR} /lib/rustlib/manifest"
335
+ done < " ${CFG_SRC_DIR} /lib/rustlib/manifest.in "
334
336
335
337
echo
336
338
echo " Rust is ready to roll."
0 commit comments