summaryrefslogtreecommitdiff
path: root/Build/cdbuild/ctan2tds.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Build/cdbuild/ctan2tds.pl')
-rwxr-xr-xBuild/cdbuild/ctan2tds.pl29
1 files changed, 24 insertions, 5 deletions
diff --git a/Build/cdbuild/ctan2tds.pl b/Build/cdbuild/ctan2tds.pl
index 0ba2f6a68e1..6996f151bd5 100755
--- a/Build/cdbuild/ctan2tds.pl
+++ b/Build/cdbuild/ctan2tds.pl
@@ -70,7 +70,7 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'amsldoc-vn', "&MAKEflatten",
'antomega', "&MAKEflatten",
'antt', "&MAKEflatten",
- 'arabtex', "&MAKEflatten",
+ 'arabtex', "&MAKEarabtex",
'archaic', "&MAKEwilson",
'arev', "&MAKEcopy", # straight copy
'ascii', "&MAKEflatten",
@@ -422,7 +422,7 @@ $standardsourcefmt='latex';
);
$standardfmt='latex';
-#
+
%specialdocfmt = (
'abbr', 'generic',
'amsldoc-it', 'italian',
@@ -533,7 +533,7 @@ $standardtex='\.cfg|\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$';
%specialtex= (
'abbr', '\.tex',
'ae', '\.fd$|\.sty',
- 'arabtex', '\.clo|\.cls|\.sty|\.tex',
+ 'arabtex', "\\.tex|$standardtex",
'babel', 'b.*plain.tex|\.ldf|\.ltx|\.cfg|\.sty|\.clo|\.cls|\.def|\.fd$',
'babelbib', '\.bdf|\.sty',
'bardiag', '\.bar|\.sty|\.cfg',
@@ -1025,7 +1025,7 @@ sub donormal {
$inspatt=$standardins;
}
- my $Foundry = $specialfoundry{$package} || $standardfoundry;
+ $Foundry = $specialfoundry{$package} || $standardfoundry;
&runins($inspatt);
# rebuild the list of files in the directory
@@ -1349,6 +1349,7 @@ sub MAKEflatten {
-d <*/*/.> && &SYSTEM("$MV -f */*/* .");
-d <*/.> && &SYSTEM("$MV -f */* .");
&SYSTEM("find -type d -print | xargs rmdir 2>/dev/null");
+ &SYSTEM("find -type f -print >/tmp/find");
&buildfilelist;
&donormal;
}
@@ -1432,6 +1433,24 @@ sub MAKEibycusbabel {
# package subroutines
+sub MAKEarabtex {
+ &xchdir ($packagedir);
+ #
+ print "\t SPECIAL $package: removing top-level links\n";
+ &SYSTEM('for f in apatch.sty arabtex.tex hebtex.tex hepatch.sty; do test -h $f && rm -v $f; done');
+ #
+ print "\t SPECIAL $package: removing top-level tgz's\n";
+ &SYSTEM('for f in *.tgz; do rm -v $f; done');
+ #
+ print "\t SPECIAL $package: renaming arabtex.htm\n";
+ &SYSTEM('mv doc/html/arabtex.htm arabtex1.htm');
+ &SYSTEM('mv doc/txt/arabtex.htm arabtex2.htm');
+ #
+ print "\t SPECIAL $package: flatten\n";
+ &xchdir ("..");
+ &MAKEflatten ();
+}
+
sub MAKEbabel {
&setup;
&buildfilelist;
@@ -1697,7 +1716,7 @@ sub MAKEae {
}
sub MAKEdevanagr {
- chdir ($packagedir) || die "chdir($packagedir) failed: $!";
+ &xchdir ($packagedir);
#
print "\t SPECIAL $package: renaming README files\n";
&SYSTEM('for f in *; do test -r $f/README && mv $f/README README.$f; done');