summaryrefslogtreecommitdiff
path: root/Master/install-tl.pl
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-02-09 10:20:05 +0000
committerNorbert Preining <preining@logic.at>2008-02-09 10:20:05 +0000
commitc80bf42679db5a01a895aecda7ea616635132e76 (patch)
tree04deb817e6edb025827cb9beb689d477fa2956e5 /Master/install-tl.pl
parent684e1fc5913f69c94260b0eece898ae01ce9dd12 (diff)
option_fmt support on unix
git-svn-id: svn://tug.org/texlive/trunk@6581 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl.pl')
-rwxr-xr-xMaster/install-tl.pl21
1 files changed, 17 insertions, 4 deletions
diff --git a/Master/install-tl.pl b/Master/install-tl.pl
index b99e6637645..4179e3962f5 100755
--- a/Master/install-tl.pl
+++ b/Master/install-tl.pl
@@ -9,8 +9,9 @@
#
# TODO:
# - support for setting up links to sys dirs
-# - support opt_fmt (generation of formats)
-# - support opt_paper (paper instead of A4)
+# - support option_fmt (generation of formats)
+# partially done, missing fmtutil-sys for windows
+# - support option_paper (paper instead of A4)
my $svnrev = '$Revision$';
$svnrev =~ m/: ([0-9]+) /;
@@ -102,8 +103,8 @@ our $trynet=0;
#$::texlive_url = 'http://tug.org/svn/texlive/trunk/Master';
# for my own testing in the virtual machine
#$::texlive_url = 'http://localhost/norbert/tltesting';
-#$::texlive_url = 'http://10.0.2.2/norbert/tltesting';
-$::texlive_url = 'http://tug.org/~preining/tltesting';
+$::texlive_url = 'http://10.0.2.2/norbert/tltesting';
+#$::texlive_url = 'http://tug.org/~preining/tltesting';
# the default scheme to be installed
my $default_scheme='scheme-full';
# some arrays where the lists of collections to be installed are saved
@@ -804,6 +805,18 @@ sub do_postinst_stuff {
tllog($::LOG_NORMAL, "re-running mktexlsr $TEXMFSYSVAR\n");
system('mktexlsr', "$TEXMFSYSVAR");
+ # now work through the options if specified at all
+
+ # first the generate all formats option
+ if ($vars{'option_format'}) {
+ tllog($::LOG_NORMAL, "pre-generation all format file (fmtutil-sys --all)\n");
+ if (win32()) {
+ tllog($::LOG_NORMAL, "missing fmtutil-sys, sorry, please wait!\n");
+ } else {
+ system('fmtutil-sys','--all');
+ }
+ }
+
# old installer:
#$config && texconfig-sys init
#$config || echo "PLEASE RUN texconfig or texconfig-sys to make new formats."