summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2012-01-11 08:01:28 +0000
committerNorbert Preining <preining@logic.at>2012-01-11 08:01:28 +0000
commit7bc9ca96c3424bfad721f18d5111024941eba8dc (patch)
treecef1e7d39ef53d21ca949cc4af7f97ebd6a1fd2d /Master/texmf
parentca266a88cda6f6cb437188f5515e69138917eda0 (diff)
mupdmap: add support for --showoption, and add TODO to fix --setoption
git-svn-id: svn://tug.org/texlive/trunk@25071 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/mupdmap.pl26
1 files changed, 21 insertions, 5 deletions
diff --git a/Master/texmf/scripts/texlive/mupdmap.pl b/Master/texmf/scripts/texlive/mupdmap.pl
index 34f92e05e98..09aa796cee6 100755
--- a/Master/texmf/scripts/texlive/mupdmap.pl
+++ b/Master/texmf/scripts/texlive/mupdmap.pl
@@ -14,6 +14,10 @@
# Anyone may freely use, modify, and/or distribute this file, without
# limitation.
#
+# TODO
+# - fix --setoption xxx YYY
+# - check all other invocations
+#
# TODO after inclusion in TL:
# - remove the special code that excludes TEXMFMAIN and reorder the rest,
# should not be necessary anymore
@@ -89,6 +93,7 @@ my @cmdline_options = (
# furthermore, it is not supported by older perls, so do it differently
#"setoption=s@{1,2}",
"showoptions=s@",
+ "showoption=s@",
"syncwithtrees",
"version",
"help|h"
@@ -265,6 +270,18 @@ sub main {
$alldata->{'changes_config'} = $changes_config_file;
read_updmap_files(@{$opts{'cnffile'}});
+ if ($opts{'showoption'}) {
+ for my $o (@{$opts{'showoption'}}) {
+ if (defined($settings{$o})) {
+ my ($v, $vo) = get_cfg($o);
+ print "$o: $v ($vo)\n";
+ } else {
+ print "$prg: unknown option: $o\n";
+ }
+ }
+ exit 0;
+ }
+
if ($opts{'listmaps'}) {
for my $m (keys %{$alldata->{'maps'}}) {
my $origin = $alldata->{'maps'}{$m}{'origin'};
@@ -1803,10 +1820,9 @@ Options:
Commands:
--help show this message and exit
--version show version information and exit
- --showoptions ITEM show alternatives for options
- --setoption OPTION VALUE set option, where OPTION is one of:
- LW35, dvipsPreferOutline, dvipsDownloadBase35,
- pdftexDownloadBase14, pxdviUse, or kanjiEmbed
+ --showoptions OPTION show possible settings for OPTION
+ --showoption OPTION show the current setting of OPTION
+ --setoption OPTION VALUE set OPTION to value
--setoption OPTION=VALUE as above, just different syntax
--enable MAPTYPE MAPFILE add "MAPTYPE MAPFILE" to updmap.cfg,
where MAPTYPE is either Map, MixedMap, KanjiMap
@@ -1826,7 +1842,7 @@ The purpose is to help users with printers that render Type 1 outline
fonts worse than mode-tuned Type 1 bitmap fonts. So, MixedMap is used
for fonts that are available as both Type 1 and Metafont.
-Explanation of the --setoption possibilities:
+Explanation of the possible OPTIONS (showoptions, showoptions, setoption):
dvipsPreferOutline true|false (default true)
Whether dvips uses bitmaps or outlines, when both are available.