From 70f7efeb5c9965a63a4143ad1c1f473585dc364c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 16 Jan 2006 00:05:12 +0000 Subject: mswin32/ git-svn-id: svn://tug.org/texlive/trunk@1482 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/mswin32/add-info-toc.pl | 60 ++ Build/source/mswin32/build.bat | 44 ++ Build/source/mswin32/build.pl | 452 +++++++++++++ Build/source/mswin32/conf-cauto.pl | 54 ++ Build/source/mswin32/configure.pl | 767 +++++++++++++++++++++ Build/source/mswin32/diff.exclude | 78 +++ Build/source/mswin32/fix-depend.pl | 66 ++ Build/source/mswin32/fix-eol.bat | 8 + Build/source/mswin32/fix-rman.pl | 32 + Build/source/mswin32/fix-win32.bat | 4 + Build/source/mswin32/global-replace.pl | 150 +++++ Build/source/mswin32/minimal-perl.pl | 86 +++ Build/source/mswin32/modes-to-cfg.pl | 44 ++ Build/source/mswin32/newbuild.pl | 386 +++++++++++ Build/source/mswin32/p4update.pl | 140 ++++ Build/source/mswin32/place.pl | 248 +++++++ Build/source/mswin32/setvars.bat | 11 + Build/source/mswin32/sync.pl | 181 +++++ Build/source/mswin32/tar-links.pl | 103 +++ Build/source/mswin32/tldiff.bat | 8 + Build/source/mswin32/update.pl | 171 +++++ Build/source/mswin32/xemtex-files.txt | 1135 ++++++++++++++++++++++++++++++++ 22 files changed, 4228 insertions(+) create mode 100644 Build/source/mswin32/add-info-toc.pl create mode 100644 Build/source/mswin32/build.bat create mode 100644 Build/source/mswin32/build.pl create mode 100644 Build/source/mswin32/conf-cauto.pl create mode 100644 Build/source/mswin32/configure.pl create mode 100644 Build/source/mswin32/diff.exclude create mode 100644 Build/source/mswin32/fix-depend.pl create mode 100644 Build/source/mswin32/fix-eol.bat create mode 100644 Build/source/mswin32/fix-rman.pl create mode 100644 Build/source/mswin32/fix-win32.bat create mode 100644 Build/source/mswin32/global-replace.pl create mode 100644 Build/source/mswin32/minimal-perl.pl create mode 100644 Build/source/mswin32/modes-to-cfg.pl create mode 100644 Build/source/mswin32/newbuild.pl create mode 100644 Build/source/mswin32/p4update.pl create mode 100644 Build/source/mswin32/place.pl create mode 100644 Build/source/mswin32/setvars.bat create mode 100644 Build/source/mswin32/sync.pl create mode 100644 Build/source/mswin32/tar-links.pl create mode 100644 Build/source/mswin32/tldiff.bat create mode 100644 Build/source/mswin32/update.pl create mode 100644 Build/source/mswin32/xemtex-files.txt (limited to 'Build') diff --git a/Build/source/mswin32/add-info-toc.pl b/Build/source/mswin32/add-info-toc.pl new file mode 100644 index 00000000000..4cd9899170b --- /dev/null +++ b/Build/source/mswin32/add-info-toc.pl @@ -0,0 +1,60 @@ +$dd = '/'; + +&main; + +exit 0; + +sub main { + local (@files); + @files = @ARGV; + $temp = &get_tmp_dir() . "ait.$$"; + open(OUT, ">$temp") || exit 1; + print OUT "Contents:\n\n"; + while (<>) { + $prevline = $line; + $line = $_; + if ($line =~ m/^\*+$/) { + print OUT "$prevline"; + } + elsif ($line =~ m/^=+$/) { + print OUT " $prevline"; + } + elsif ($line =~ m/^-+$/) { + print OUT " $prevline"; + } + elsif ($line =~ m/^\.+$/) { + print OUT " $prevline"; + } + } + print OUT "\n\n"; + @ARGV = @files; + while (<>) { + print OUT $_; + } + close (OUT); + open (IN, $temp); + open (OUT, ">$files[0]"); + binmode(IN); binmode(OUT); + local($/) = undef; + print OUT ; + close(OUT); + close(IN); +} + +sub get_tmp_dir { + if (!($TMP)) { + local (@l) = ("TMPDIR", "TEMP", "TMP", "c${dd}tmp"); + local ($var, $dir); + foreach $var (@l) { + $dir = $ENV{$var}; + if (-d $dir) { + $TMP = $dir; + last; + } + } + } + $TMP =~ s/\\/$dd/g; + + if ($TMP =~ /$dd$/) { + } else { $TMP .= $dd } +} diff --git a/Build/source/mswin32/build.bat b/Build/source/mswin32/build.bat new file mode 100644 index 00000000000..2d15b2d89ef --- /dev/null +++ b/Build/source/mswin32/build.bat @@ -0,0 +1,44 @@ +taskkill /im:ispell.exe /f +rem p4 sync -f //depot/Master/texmf/... +rem rmdir /q/s "c:\program files\texlive\texmf" +rem mkdir "c:\program files\texlive\texmf" +rem xcopy c:\source\texlive\Master\texmf "c:\program files\texlive\texmf" /r/i/e/k +rem perl ./sync.pl c:/source/texlive/Master/texmf "c:/Program Files/texlive/texmf" +rem perl ./sync.pl c:/source/texlive/Master/texmf-dist "c:/Program Files/texlive/texmf-dist" +rem perl ./sync.pl c:/source/texlive/Master/texmf-doc "c:/Program Files/texlive/texmf-doc" +perl ./build.pl --distclean=tex --development +perl ./build.pl --distclean=xemtex --development +perl ./sync.pl --sources +perl ./sync.pl --restrict --texmf +rem pushd .. & ( \source\fptex\gnu\diffutils-2.7\dynamic\diff.exe -ruN -X mswin32\diff.exclude -x "*/texk.development/*" c:/source/TeXLive/Build/source/TeX ./ > diffs\tl-source-29.diff ) & popd +rem pushd .. & ( \source\fptex\gnu\diffutils-2.7\dynamic\diff.exe -ruN -X mswin32\diff.exclude c:/source/TeXLive/Build/source.development/TeX/texk ./texk.development > diffs\tl-dev-29.diff ) & popd +rem pushd .. & ( \source\fptex\gnu\diffutils-2.7\dynamic\diff.exe -ruN -X mswin32\diff.exclude ./texk ./texk.development > diffs\dev-29.diff ) & popd +perl ./build.pl --build=tex --log=build.log --development +perl ./build.pl --build=xemtex --log=xemtex.log --development +perl ./build.pl --install=tex --log=install.log --from_scratch --development +mktexlsr +updmap +fmtutil --all --dolinks --force +perl ./build.pl --install=tex --log=install.log --development +perl ./build.pl --install=xemtex --log=xemtex-install.log --development +perl ./build.pl --standalone --development --log=standalone.developement.log +perl ./sync.pl c:/progra~1/texlive/bin/win32 c:/source/texlive/Master/bin/win32 +perl ./sync.pl c:/progra~1/texlive/bin/win32-static c:/source/texlive/Master/bin/win32-static +perl ./sync.pl --restrict c:/progra~1/texlive/xemtex c:/source/texlive/Master/xemtex +perl ./sync.pl --restrict c:/progra~1/texlive/texmf c:/source/texlive/Master/texmf +perl ./p4update.pl --update --subdir=Master/bin/win32 +perl ./p4update.pl --update --subdir=Master/bin/win32-static +perl ./p4update.pl --update --subdir=Master/texmf +perl ./p4update.pl --update --subdir=Master/xemtex +pushd \source\texlive\Master\Tools +rem perl ./tpm-factory.pl --clean --patterns=from --arch=all --type=TLCore +rem perl ./tpm-factory.pl --clean --patterns=auto --arch=all --type=Package +rem perl ./tpm-factory.pl --clean --patterns=auto --arch=all --type=Documentation +rem perl ./tpm-factory.pl --check=dep --arch=all > dependencies.log +rem perl ./tpm-factory.pl --check=cov --arch=all --type=TLCore > tlcore-coverage.log +rem perl ./tpm-factory.pl --check=cov --arch=all --type=Package > package-coverage.log +rem perl ./tpm-factory.pl --check=cov --arch=all --type=Documentation > documentation-coverage.log +rem perl ./tpm-factory.pl --tpm2zip --arch=win32 --all +rem perl ./tpm-factory.pl --tpm2zip=full --arch=win32-static --standalone +popd + diff --git a/Build/source/mswin32/build.pl b/Build/source/mswin32/build.pl new file mode 100644 index 00000000000..14606ad76f9 --- /dev/null +++ b/Build/source/mswin32/build.pl @@ -0,0 +1,452 @@ +# +# Build tool for Web2C & supp +# Author: F. Popineau +# Date : 04/11/98 +# Time-stamp: <04/03/19 00:52:22 popineau> +# +# Usage: +# build