diff options
Diffstat (limited to 'Master/bin')
-rwxr-xr-x | Master/bin/win32/fmtutil-sys.pl | 21 | ||||
-rwxr-xr-x | Master/bin/win32/updmap-sys.pl | 21 |
2 files changed, 42 insertions, 0 deletions
diff --git a/Master/bin/win32/fmtutil-sys.pl b/Master/bin/win32/fmtutil-sys.pl new file mode 100755 index 00000000000..ad527a9b22a --- /dev/null +++ b/Master/bin/win32/fmtutil-sys.pl @@ -0,0 +1,21 @@ +#!/usr/bin/env perl + +# fmtutil-sys: wrapper script for fmtutil with TEXMFVAR and +# TEXMFCONFIG set to TEXMFSYSVAR / TEXMFSYSCONFIG + +# Copyright 2007 Reinhard Kotucha +# This file is licensed under the GNU General Public License version 2 +# or any later version. + +# Originally provided as a shell script written by Thomas Esser. +$^W=1; + +my $TEXMFSYSVAR=`kpsewhich -var-value TEXMFSYSVAR`; +chomp ("$TEXMFSYSVAR"); +$ENV{"$TEXMFVAR"}="$TEXMFSYSVAR"; + +my $TEXMFSYSCONFIG=`kpsewhich -var-value TEXMFSYSVAR`; +chomp ("$TEXMFSYSCONFIG"); +$ENV{"$TEXMFCONFIG"}="$TEXMFSYSCONFIG"; + +exec ('fmtutil', @ARGV); diff --git a/Master/bin/win32/updmap-sys.pl b/Master/bin/win32/updmap-sys.pl new file mode 100755 index 00000000000..95680d787ad --- /dev/null +++ b/Master/bin/win32/updmap-sys.pl @@ -0,0 +1,21 @@ +#!/usr/bin/env perl + +# updmap-sys: wrapper script for updmap with TEXMFVAR and +# TEXMFCONFIG set to TEXMFSYSVAR / TEXMFSYSCONFIG + +# Copyright 2007 Reinhard Kotucha +# This file is licensed under the GNU General Public License version 2 +# or any later version. + +# Originally provided as a shell script written by Thomas Esser. +$^W=1; + +my $TEXMFSYSVAR=`kpsewhich -var-value TEXMFSYSVAR`; +chomp ("$TEXMFSYSVAR"); +$ENV{"$TEXMFVAR"}="$TEXMFSYSVAR"; + +my $TEXMFSYSCONFIG=`kpsewhich -var-value TEXMFSYSVAR`; +chomp ("$TEXMFSYSCONFIG"); +$ENV{"$TEXMFCONFIG"}="$TEXMFSYSCONFIG"; + +exec ('updmap', @ARGV); |