[tex-live] updmap improvement
Thomas Esser
te at dbs.uni-hannover.de
Sun Oct 17 19:18:57 CEST 2004
Code-freeze, I know, but updates to scripts don't require rebuilds.
What about this updmap update? In any case, feedback about these message
texts is very welcome...
BTW: the manpage of updmap does not yet have any information about
mapWarn messages...
Thomas
--- /t/texlive/Build/source.development/TeX/texk/tetex/updmap 2004-10-12 18:02:51.000000000 +0200
+++ ./updmap 2004-10-17 19:13:54.800880830 +0200
@@ -31,6 +31,8 @@
###############################################################################
# program history:
+# So Okt 17 19:07:17 CEST 2004
+# improved warnings / error messages
# Mi Okt 6 16:37:49 CEST 2004
# commenty may start with any of *#;%
# Sun Aug 1 11:42:14 CEST 2004, te
@@ -92,7 +94,7 @@
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1097073550 # seconds since `00:00:00 1970-01-01 UTC'
+version=1098032865 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
###############################################################################
@@ -140,7 +142,7 @@
###############################################################################
warn()
{
- echo "$progname: $1." >&2
+ echo "$@." | fmt | sed "s@^@$progname: @" >&2
}
###############################################################################
@@ -988,7 +990,18 @@
verboseMsg
if test -f $mapWarnFatal; then
- warn "Severe problems during map file lookup, see mapWarn messages. Consult the manualpage for details"
+ m="Some map files have not been found in the right location. Either,"
+ m="$m they have not been found at all (watch out for notFound messages in"
+ m="$m the previous output) or they have only been found in an obsolete"
+ m="$m location (badLocation messages). To fix this, put an appropriate"
+ m="$m map file into place or remove unavailable map files from the"
+ m="$m configuration file. Note that the location for map files has"
+ m="$m been changed. More information about the changed search paths"
+ m="$m are given in secion 1.1 (History) of the TDS document, version"
+ m="$m 1.1. You propably can read this document by executing the command"
+ m="$m \`texdoc tds'"
+
+ warn "$m"
return 1
fi
@@ -1061,7 +1074,19 @@
$dvipsoutputdir/ps2pk.map >&2
verboseMsg
- test -f $mapWarnCalled && warn "Warnings caused during map file lookup, see mapWarn messages. Consult the manualpage for details"
+ if test -f $mapWarnCalled; then
+ m="Some map files have been found in an obsolete location. This"
+ m="$m is not an error per se, but please consider to remove duplicates"
+ m="$m from the old location. If you inspect the previous log output,"
+ m="$m you might see warnings about obsoleteCopy (means that an identical"
+ m="$m copy of the use map file has been found in the obsolete search path)"
+ m="$m and/or about manualResolve (means that an file with different content"
+ m="$m than the used map file has been found in the obsolete search path)."
+ m="$m More information about the changed search paths are given in secion"
+ m="$m 1.1 (History) of the TDS document, version 1.1. You propably can read"
+ m="$m this document by executing the command \`texdoc tds'"
+ warn "$m"
+ fi
return 0
}
More information about the tex-live
mailing list