From 9ae7d51a5049b0a00654f95dab49ae8e0717cb1b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 23 Dec 2009 00:02:54 +0000 Subject: complain if the -custom-bin argument does not have kpsewhich git-svn-id: svn://tug.org/texlive/trunk@16483 c570f23f-e606-0410-a88d-b1316a301751 --- Master/install-tl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Master/install-tl') diff --git a/Master/install-tl b/Master/install-tl index 9baea198928..a38c449e659 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -405,10 +405,13 @@ info("Installing TeX Live $TeXLive::TLConfig::ReleaseYear from: $location\n"); info("Platform: ", platform(), " => \'", platform_desc(platform), "\'\n"); if ($opt_custom_bin) { - if (-d $opt_custom_bin) { - info("Platform overridden, binaries taken from $opt_custom_bin\nand put into bin/custom!\n"); + if (-d $opt_custom_bin && (-r "$opt_custom_bin/kpsewhich" + || -r "$opt_custom_bin/kpsewhich.exe")) { + info("Platform overridden, binaries taken from $opt_custom_bin\n" + . "and will be installed into .../bin/custom.\n"); } else { - tldie("Argument for -custom-bin needs to be directory with TeX Live binaries!\n"); + tldie("$opt_custom_bin: Argument to -custom-bin must be a directory " + . "with TeX Live binaries.\n"); } } if ($media eq "DVD") { -- cgit v1.2.3