diff options
author | Karl Berry <karl@freefriends.org> | 2022-12-26 20:53:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-12-26 20:53:49 +0000 |
commit | b5c58f1b712acb8b4aa97b6c9b6aef1e17ea601d (patch) | |
tree | fb7074c3d454600651379c43571e5b8304e7bff2 /Master/tlpkg/libexec | |
parent | 18f9fe84463278c66b907bf156c4c2103bd0bab4 (diff) |
pst-flags (26dec22)
git-svn-id: svn://tug.org/texlive/trunk@65367 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/libexec')
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index d9cad296686..613bd46630d 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1751,6 +1751,7 @@ chomp (my $ctan_root = `tlpkginfo --ctan-root`); 'prerex' => '&POSTprerex', 'psnfss' => '&POSTpsnfss', 'pst-cox' => '&POSTpstcox', + 'pst-flags' => '&POST_onelevel', 'pst-geo' => '&POSTpstgeo', 'ptex-fontmaps' => '&POSTptex_fontmaps', 'ptex2pdf' => '&POST_preserve_postcode', @@ -7512,6 +7513,21 @@ sub POSTzhmetrics { # Generic post hook actions follow, with an underscore following POST. +# Many people upload to ctan with a single directory level for +# doc/source/tex files. Handle those directories in themselves. +# +sub POST_onelevel { + print "POST$package - handle doc/source/tex directories\n"; + for my $dir ("source", "tex") { + next unless -d $dir; + # theoretically we should use $whichformat, $sourceformat, + # but in practice they are always the same. + &rename_with_mkdir ($d, "$DEST/$dir/$whichdocformat/$package"); + } + # move files in doc/ up to cwd. If there are clashes, will error out. + &xsystem ("$MV doc/* ."); +} + sub POST_otherformat { print "POST$package - move macros up a level\n"; &SYSTEM ("$MV $DEST/tex/$package/$package/* $DEST/tex/$package/"); |