From c51ea29e508c2b3ade04ead660e738f1c624dc95 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 18 Jun 2009 06:50:44 +0000 Subject: move the conf/cache stuff into xetex.win32 binary package, and adjust the postaction code for the new location git-svn-id: svn://tug.org/texlive/trunk@13807 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/tlpostcode/xetex.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Master/tlpkg/tlpostcode') diff --git a/Master/tlpkg/tlpostcode/xetex.pl b/Master/tlpkg/tlpostcode/xetex.pl index 9a47f8898ab..2ac468358e7 100644 --- a/Master/tlpkg/tlpostcode/xetex.pl +++ b/Master/tlpkg/tlpostcode/xetex.pl @@ -27,7 +27,7 @@ use TeXLive::TLUtils qw(win32 mkdirhier conv_to_w32_path log info); # # bin-installs font-config related stuff chomp( my $texmfsysvar = `kpsewhich -var-value=TEXMFSYSVAR` ) ; -if (-r "$texdir/bin/win32/conf/fonts.conf") { +if (-r "$texdir/bin/win32/xetex.exe") { # we have installed w32, so put it into texmfsysvar mkdirhier("$texmfsysvar/fonts"); TeXLive::TLUtils::rmtree("$texmfsysvar/fonts/conf"); @@ -39,16 +39,16 @@ if (-r "$texdir/bin/win32/conf/fonts.conf") { push @cpycmd, "cp", "-R"; } system(@cpycmd, - (win32() ? conv_to_w32_path("$texdir/bin/win32/conf") : - "$texdir/bin/win32/conf"), + (win32() ? conv_to_w32_path("$texdir/tlpkg/tlpostcode/xetex/conf") : + "$texdir/tlpkg/tlpostcode/xetex/conf"), (win32() ? conv_to_w32_path("$texmfsysvar/fonts/conf") : "$texmfsysvar/fonts/conf")); system(@cpycmd, - (win32() ? conv_to_w32_path("$texdir/bin/win32/cache") : - "$texdir/bin/win32/cache"), + (win32() ? conv_to_w32_path("$texdir/tlpkg/tlpostcode/xetex/cache") : + "$texdir/tlpkg/tlpostcode/xetex/cache"), (win32() ? conv_to_w32_path("$texmfsysvar/fonts/cache") : "$texmfsysvar/fonts/cache")); - if (open(FONTSCONF, "<$texdir/bin/win32/conf/fonts.conf")) { + if (open(FONTSCONF, "<$texdir/tlpkg/tlpostcode/xetex/conf/fonts.conf")) { my @lines = ; close(FONTSCONF); if (open(FONTSCONF, ">$texmfsysvar/fonts/conf/fonts.conf")) { @@ -67,7 +67,7 @@ if (-r "$texdir/bin/win32/conf/fonts.conf") { warn("Cannot open $texmfsysvar/fonts/conf/fonts.conf for writing\n"); } } else { - warn("Cannot open $texdir/bin/win32/conf/fonts.conf\n"); + warn("Cannot open $texdir/tlpkg/tlpostcode/xetex/conf/fonts.conf\n"); } } # call fc-cache but only when we install on w32! -- cgit v1.2.3