summaryrefslogtreecommitdiff
path: root/Master/tlpkg/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/libexec')
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds19
1 files changed, 16 insertions, 3 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 7ddcd9c2f2f..748119d799b 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -1428,6 +1428,7 @@ chomp (my $ctan_root = `tlpkginfo --ctan-root`);
'pictex' => '&PREHOOK_pictex',
'pkuthss' => '&PREHOOK_flatten1',
'plex-otf' => '&PREHOOK_flatten1',
+ 'pmx' => '&PREHOOK_pmx',
'prosper' => '&PREHOOK_prosper',
'skb' => '&PREHOOK_flatten1',
'suftesi' => '&PREHOOK_suftesi',
@@ -5661,6 +5662,12 @@ sub PREHOOK_pictex {
&SYSTEM ("$RM -rf addon/autoarea*");
}
+sub PREHOOK_pmx {
+ print "PREHOOK_$package - rm prebuilt binaries, up one level\n";
+ &SYSTEM ("$RM -rf OSX Windows* source");
+ &SYSTEM ("$MV doc/* tex/* .");
+}
+
sub PREHOOK_prosper {
print "PREHOOK_$package - handle image conflicts\n";
# some files different between img/ and contrib/img; prefer
@@ -6877,10 +6884,16 @@ sub POST_do_man {
}
sub POST_preserve_bin {
- # the pmx package includes binaries made from Build, and normal
- # scripts and support files. The latter can get updated without
- # needing to update the former, so we support it. Which means
+ # the pmx package, among others, includes binaries made from Build,
+ # and normal scripts and support files. The latter can get updated
+ # without needing to update the former, so we support it. Which means
# preserving the binaries from the Build.
+ #
+ # The ctan2tds output will look weird since all the binaries will show
+ # up as new files, since they are in <pkg>.<platform> subpackages. And
+ # thus the svn run will get errors that they can't be added, also. But
+ # since they don't actually need to be committed (that is the whole
+ # point of preserving them), no harm done.
my (@binaries) = @_;
chomp (my @platforms = `cd $Master/bin && ls`);
for my $p (@platforms) {