summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/texlive
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-18 22:18:08 +0000
committerKarl Berry <karl@freefriends.org>2021-07-18 22:18:08 +0000
commitb013862eaf77e6f77deae745464aa377ca4062f6 (patch)
treefcb1af769ef9f996d1396c2088c5cde635a07368 /Master/texmf-dist/scripts/texlive
parenta626b6e5d51e25b398d89cb2f679a3743c91a9f5 (diff)
(sorry, that last log message was supposed to be:)
replace File::Copy calls with TeXLive::TLUtils::copy("-f") since Fedora (it seems) doesn't provide File::Copy. Reports from Murpholino Peligro 21 May 2021 13:07:16, and John Gill 18 Jul 2021 13:55:02. git-svn-id: svn://tug.org/texlive/trunk@59983 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/texlive')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/fmtutil.pl49
1 files changed, 24 insertions, 25 deletions
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl
index 410c8bbea66..710d1fae740 100755
--- a/Master/texmf-dist/scripts/texlive/fmtutil.pl
+++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl
@@ -860,34 +860,33 @@ sub rebuild_one_format {
$first_time_creation_in_usermode = $possibly_warn;
#
# original fmtutil.sh did some magic trick for mplib-luatex.mem
- #
# nowadays no mplib mem is created and all files loaded
# so we comment and do not convert this
#
- # As a special special case, we create mplib-luatex.mem for use by
- # the mplib embedded in luatex if it doesn't already exist. (We
- # never update it if it does exist.)
- #
- # This is used by the luamplib package. This way, an expert user
- # who wants to try a new version of luatex (hence with a new
- # version of mplib) can manually update mplib-luatex.mem without
- # having to tamper with mpost itself.
- #
- # if test "x$format" = xmpost && test "x$engine" = xmpost; then
- # mplib_mem_name=mplib-luatex.mem
- # mplib_mem_file=$fulldestdir/$mplib_mem_name
- # if test \! -f $mplib_mem_file; then
- # verboseMsg "$progname: copying $destfile to $mplib_mem_file"
- # if cp "$destfile" "$mplib_mem_file" </dev/null; then
- # mktexupd "$fulldestdir" "$mplib_mem_name"
- # else
- # # failure to copy merits failure handling: e.g., full file system.
- # log_failure "cp $destfile $mplib_mem_file failed."
- # fi
- # else
- # verboseMsg "$progname: $mplib_mem_file already exists, not updating."
- # fi
- # fi
+ ## As a special special case, we create mplib-luatex.mem for use by
+ ## the mplib embedded in luatex if it doesn't already exist. (We
+ ## never update it if it does exist.)
+ ##
+ ## This is used by the luamplib package. This way, an expert user
+ ## who wants to try a new version of luatex (hence with a new
+ ## version of mplib) can manually update mplib-luatex.mem without
+ ## having to tamper with mpost itself.
+ ##
+ ## if test "x$format" = xmpost && test "x$engine" = xmpost; then
+ ## mplib_mem_name=mplib-luatex.mem
+ ## mplib_mem_file=$fulldestdir/$mplib_mem_name
+ ## if test \! -f $mplib_mem_file; then
+ ## verboseMsg "$progname: copying $destfile to $mplib_mem_file"
+ ## if cp "$destfile" "$mplib_mem_file" </dev/null; then
+ ## mktexupd "$fulldestdir" "$mplib_mem_name"
+ ## else
+ ## ## failure to copy merits failure handling: e.g., full file system.
+ ## log_failure "cp $destfile $mplib_mem_file failed."
+ ## fi
+ ## else
+ ## verboseMsg "$progname: $mplib_mem_file already exists, not updating."
+ ## fi
+ ## fi
if ($mktexfmtMode && $mktexfmtFirst) {
print "$destfile\n";