diff options
author | Norbert Preining <preining@logic.at> | 2009-06-09 13:30:25 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-06-09 13:30:25 +0000 |
commit | b0484d455ff7348d1e9f11ae658496a2e855315a (patch) | |
tree | 56cf108f1ad61f46c13387f54f6b37bcbdc152ba /Master/install-tl | |
parent | 39c17ac9a323db9f3e1510514e9bbafdd7b08ff3 (diff) |
warn if fontconfig is not installed on cygwin and die
git-svn-id: svn://tug.org/texlive/trunk@13680 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-x | Master/install-tl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/install-tl b/Master/install-tl index 0fb0bcd37ef..5b85d828902 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -314,6 +314,22 @@ if (($opt_gui ne "text") && !$opt_no_gui && ($opt_profile eq "")) { # initialize the correct platform platform(); + +# we do not support cygwin < 1.7, so check for that +if (platform() eq "i386-cygwin") { + chomp( my $un = `uname -r`); + if ($un =~ m/^(\d+)\.(\d+)\./) { + if ($1 < 2 && $2 < 7) { + tlwarn("\nSorry, the TL binaries require at least cygwin 1.7.\n"); + exit(1); + } + } + if (! -r "/usr/bin/cygfontconfig-1.dll") { + tlwarn("\nTexlive installation requires fontconfig. Please run cygwin's setup\nprogram and install the fontconfig package.\n"); + exit(1); + } +} + if (!setup_programs ("$::installerdir/tlpkg/installer", "$::_platform_")) { tlwarn("$0: Couldn't set up the necessary programs;\n" . " perhaps your platform ($::_platform_) is not supported.\n"); |