summaryrefslogtreecommitdiff
path: root/Master/tlpkg/libexec/ctan2tds
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/libexec/ctan2tds')
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds13
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 33f0f0d7855..36658036b9b 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -1272,6 +1272,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'wsuipa' => '&PREHOOK_wsuipa',
'yathesis' => '&PREHOOK_flatten1',
'xepersian' => '&PREHOOK_flatten1',
+ 'xsim' => '&PREHOOK_xsim',
);
@@ -1370,6 +1371,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'velthuis' => '&POSTvelthuis',
'xecyr' => '&POSTxecyr',
'xetex-pstricks' => '&POSTxetexpstricks',
+ 'xsim' => '&POSTxsim',
'xymtex' => '&POSTxymtex',
'zhmetrics' => '&POSTzhmetrics',
);
@@ -5316,6 +5318,12 @@ sub PREHOOK_wsuipa {
&SYSTEM ("$MV changes/* doc/* macros/* mf/* pk/* tfm/* .");
}
+sub PREHOOK_xsim {
+ print "PREHOOK_$package - flatten doc, but not others\n";
+ # we want doc files at top, but keep examples/ and code/ subdirs
+ &SYSTEM ("$MV doc/* .");
+}
+
sub prehook_pod2man {
my ($author,@scripts) = @_;
@@ -6261,6 +6269,11 @@ sub POSTxetexpstricks {
# &mv_with_mkdir ("*", "$DEST/xindy/modules/lang/persian/");
#}
+sub POSTxsim {
+ print "POST$package - move code/ subdir\n";
+ &mv_with_mkdir ("code/*", "$DEST/tex/latex/$package");
+}
+
sub POSTxymtex {
print "POST$package - rm .BAK old-doc, move subdirectories\n";
&SYSTEM ("rm -rf old-doc");