summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-04-28 18:50:44 +0000
committerNorbert Preining <preining@logic.at>2008-04-28 18:50:44 +0000
commit7b7f9f425d64734d3a3a6a22565ab3e994ab30f7 (patch)
tree98cd1e27e5cf99708b4f2919027b375c5a4860e6 /Master
parent788b6dfdc51830f7148c039b45033b28cc210481 (diff)
fonts.conf updating on win32, but only at initial installation
git-svn-id: svn://tug.org/texlive/trunk@7712 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/install-tl35
1 files changed, 33 insertions, 2 deletions
diff --git a/Master/install-tl b/Master/install-tl
index 3cbd259dd37..8ddf9916663 100755
--- a/Master/install-tl
+++ b/Master/install-tl
@@ -7,10 +7,11 @@
# or any later version.
#
# TODO:
-# - fonts.conf adaption when bin-xetex is installed (should also be done
+# - fonts.conf adaption when bin-xetex is installed
+# DONE here in install-tl, but should also be done
# in tl-package-manager.pl, or better in TLMedia.pm, so that after we
# have converted install-tl to use TLMedia we can collect post install
-# stuff in one place only)
+# stuff in one place only
my $svnrev = '$Revision$';
$svnrev =~ m/: ([0-9]+) /;
@@ -951,6 +952,36 @@ sub do_postinst_stuff {
tllog($::LOG_NORMAL, "re-running mktexlsr $TEXMFSYSVAR\n");
system('mktexlsr', "$TEXMFSYSVAR");
+ #
+ # post install actions
+ # we don't have a general post install procedure for single packages
+ # so we collect the stuff here and also in TLMedia and as soon as
+ # installation has been moved to use TLMedia we can remove it from here
+ #
+ if ($install{'bin-xetex'}) {
+ # bin-xetex installs font-config related stuff
+ # we have to
+ # - updated the installation path in bin/win32/conf/fonts.conf
+ # - call fc-cache -v
+ if (-r "$TEXDIR/bin/win32/conf/fonts.conf") {
+ open(FONTSCONF, "<$TEXDIR/bin/win32/conf/fonts.conf")
+ or die("Cannot open $TEXDIR/bin/win32/conf/fonts.conf");
+ my @lines = <FONTSCONF>;
+ close(FONTSCONF);
+ open(FONTSCONF, ">$TEXDIR/bin/win32/conf/fonts.conf")
+ or die("Cannot open $TEXDIR/bin/win32/conf/fonts.conf for writing");
+ foreach (@lines) {
+ $_ =~ s!c:/Program Files/texlive/2008!$TEXDIR!;
+ print FONTSCONF;
+ }
+ close(FONTSCONF);
+ }
+ # call fc-cache but only when we install on win32!
+ if (win32()) {
+ system("fc-cache","-v");
+ }
+ }
+
# now work through the options if specified at all
# letter instead of a4