diff options
Diffstat (limited to 'Build')
-rwxr-xr-x | Build/cdbuild/ctan2tds.pl | 29 | ||||
-rwxr-xr-x | Build/tools/ctan2tl | 14 | ||||
-rwxr-xr-x | Build/tools/tpm-ctan-check | 4 |
3 files changed, 37 insertions, 10 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'); diff --git a/Build/tools/ctan2tl b/Build/tools/ctan2tl index fb926c9cd6c..3fa9339714d 100755 --- a/Build/tools/ctan2tl +++ b/Build/tools/ctan2tl @@ -104,7 +104,7 @@ tpmfile=`ls $Master/texmf*/tpm/$pkg.tpm 2>/dev/null` if test -z "$tpmfile"; then echo "$0: no tpm file for $pkg in `cd $Master; pwd`." >&2 else - printf "\n\f compared to current tpm $tpmfile\n" + printf "\n\f new vs. present $tpmfile\n" rm -f /tmp/pkgfiles.* # remove leading text in case of lines starting with texmf. # Then assume all actual files do start with texmf. @@ -114,9 +114,17 @@ else # # list of files in the new package we've just cooked. (cd $pkg && find \! -type d -print) | grep -v '/cooked/' \ - | sort >/tmp/pkgfiles.tl + | sort >/tmp/pkgfiles.new # - comm -3 /tmp/pkgfiles.tpm /tmp/pkgfiles.tl + comm -3 /tmp/pkgfiles.new /tmp/pkgfiles.tpm + # + for common_file in `comm -12 /tmp/pkgfiles.new /tmp/pkgfiles.tpm`; do + diff -u0 $pkg/$common_file $Master/$common_file + done >/tmp/tldiff + diff_lines=`wc -l </tmp/tldiff` + diff_lines=`expr $diff_lines / 2` + printf "%d common files, ~%d lines different (/tmp/tldiff)\n" \ + `comm -12 /tmp/pkgfiles.new /tmp/pkgfiles.tpm | wc -l` $diff_lines fi printf "\n\f place $place_chicken\n" diff --git a/Build/tools/tpm-ctan-check b/Build/tools/tpm-ctan-check index 9ad0d4f6298..bfb48bf6f3c 100755 --- a/Build/tools/tpm-ctan-check +++ b/Build/tools/tpm-ctan-check @@ -26,7 +26,7 @@ sub main "a0poster", "aastex", "abbr", "abstract", #"abstyles", not updated, but too old to matter "accfonts", "acronym", "algorithm2e", "algorithms", - "amsldoc-it", "amsthdoc-it", "apacite", + "amsldoc-it", "amsthdoc-it", "apacite", "arabtex", "archaic", "arev", "ascii", "babel", "babelbib", "beamer-tut-pt", "beebe", "betababel", "bezos", "bghyphen", "bibhtml", @@ -42,7 +42,7 @@ sub main "etaremune", "esint", "esint-type1", "ethiop", "europecv", "everypage", "exercise", "exteps", - "featpost", "flagderiv", "flippdf", ""floatflt", "floatrow", "flowfram", + "featpost", "flagderiv", "flippdf", "floatflt", "floatrow", "flowfram", "fltpoint", "fmtcount", "fncychap", "fontspec", "formular", "fourier", "free-math-font-survey", "genmisc", "glossary", "gost", "graphics", "graphicx-psmin", |