summaryrefslogtreecommitdiff
path: root/Master/tlpkg/libexec/ctan2tds
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/libexec/ctan2tds')
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds10
1 files changed, 9 insertions, 1 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 3bbeff1622a..3355ca94251 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -5023,6 +5023,8 @@ sub build_scripts_copy {
&SYSTEM ("$CP $exec $builddir/");
# Warn if missing from the Makefile.am in the sources.
+ # (but not for mptopdf, since peb unified it.)
+ return if $exec =~ /mptopdf/;
(my $exec_basename = $exec) =~ s,^.*/,,;
my $scripts_Makefile = "$Build/$build_scriptsdir/Makefile.in";
my $pattern = "\\b$build_subdir/$exec_basename\\b";
@@ -5045,7 +5047,13 @@ sub POSTmptopdf {
my $exec = "mptopdf.pl";
&bindirs_symlink ($exec);
&build_scripts_copy ($exec, $pkg_subdir);
- &SYSTEM ("$CP ../stubs/mswin/mptopdf.exe $w32_bindir/");
+ #
+ # but for windows, use our wrapper rather than ConTeXt's,
+ # since the whole point is to have mptopdf available without ConTeXt.
+
+ my $build_tldir = "texk/texlive";
+ my $w32_wrapper = "$Build/$build_tldir/w32_wrapper/runscript.exe";
+ &SYSTEM ("$CP $w32_wrapper $w32_bindir/mptopdf.exe");
#
print "still POST$package - man page\n";
&xchdir ("$DEST/doc/context/scripts/mkii");