diff options
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-x | Master/texmf-dist/scripts/ptex-fontmaps/kanji-config-updmap.pl | 24 | ||||
-rwxr-xr-x | Master/texmf-dist/scripts/ptex-fontmaps/kanji-fontmap-creator.pl | 4 |
2 files changed, 23 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/ptex-fontmaps/kanji-config-updmap.pl b/Master/texmf-dist/scripts/ptex-fontmaps/kanji-config-updmap.pl index a5159f26786..1a0f1f2530a 100755 --- a/Master/texmf-dist/scripts/ptex-fontmaps/kanji-config-updmap.pl +++ b/Master/texmf-dist/scripts/ptex-fontmaps/kanji-config-updmap.pl @@ -1,6 +1,6 @@ #!/usr/bin/env perl # kanji-config-updmap: setup Japanese font embedding -# Version 20180306.0 +# Version 20180328.0 # # formerly known as updmap-setup-kanji # @@ -22,7 +22,7 @@ use Getopt::Long qw(:config no_autoabbrev ignore_case_always); use strict; my $prg = "kanji-config-updmap"; -my $version = '20180306.0'; +my $version = '20180328.0'; my $updmap_real = "updmap"; my $updmap = $updmap_real; @@ -132,11 +132,29 @@ if ($opt_help) { # my %representatives; my @databaselist = "ptex-fontmaps-data.dat"; -push @databaselist, "ptex-fontmaps-macos-data.dat"; +push @databaselist, "ptex-fontmaps-macos-data.dat" if (macosx_new()); main(@ARGV); +sub macosx { return ($^O=~/^darwin$/i); } + +sub macosx_new { + if (macosx()) { + my $macos_ver = `sw_vers -productVersion`; + my $macos_ver_major = $macos_ver; + $macos_ver_major =~ s/^(\d+)\.(\d+).*/$1/; + my $macos_ver_minor = $macos_ver; + $macos_ver_minor =~ s/^(\d+)\.(\d+).*/$2/; + if ($macos_ver_major==10) { + if ($macos_ver_minor>=11) { + return 1; + } + } + } + return 0; +} + sub version { my $ret = sprintf "%s version %s\n", $prg, $version; return $ret; diff --git a/Master/texmf-dist/scripts/ptex-fontmaps/kanji-fontmap-creator.pl b/Master/texmf-dist/scripts/ptex-fontmaps/kanji-fontmap-creator.pl index dc67800d5f2..4631e48c275 100755 --- a/Master/texmf-dist/scripts/ptex-fontmaps/kanji-fontmap-creator.pl +++ b/Master/texmf-dist/scripts/ptex-fontmaps/kanji-fontmap-creator.pl @@ -2,7 +2,7 @@ # # kanji-fontmap-creator # (c) 2012-2014 Norbert Preining -# Version: 20180306.0 +# Version: 20180328.0 # Licenced under the GPLv2 or any higher version # # gui to create map files for (kanji-config-)updmap @@ -41,7 +41,7 @@ my $opt_help = 0; my $opt_version = 0; my $prg = "kanji-fontmap-creator"; -my $version = "20180306.0"; +my $version = "20180328.0"; # # global vars configuring operation |