From 8b7b6eb852a7ca709196fb1a1de4ebe28ecc85d5 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Thu, 2 Apr 2009 13:12:52 +0000 Subject: new build system: texk/texlive/ git-svn-id: svn://tug.org/texlive/trunk@12600 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/configure | 10 + Build/source/configure.ac | 10 + Build/source/texk/texlive/Makefile.am | 152 ++----- Build/source/texk/texlive/Makefile.in | 334 ++++++++++---- Build/source/texk/texlive/configure | 3 +- Build/source/texk/texlive/configure.ac | 2 +- .../source/texk/texlive/linked_scripts/Makefile.am | 138 ++++++ .../source/texk/texlive/linked_scripts/Makefile.in | 493 +++++++++++++++++++++ .../linked_scripts/texloganalyser/texloganalyser | 342 ++++++++++++++ Build/source/texk/texlive/tl-w32-starter.bat | 0 10 files changed, 1282 insertions(+), 202 deletions(-) create mode 100644 Build/source/texk/texlive/linked_scripts/Makefile.am create mode 100644 Build/source/texk/texlive/linked_scripts/Makefile.in create mode 100755 Build/source/texk/texlive/linked_scripts/texloganalyser/texloganalyser mode change 100644 => 100755 Build/source/texk/texlive/tl-w32-starter.bat (limited to 'Build') diff --git a/Build/source/configure b/Build/source/configure index 3dcbb06c0fd..65edb40c658 100755 --- a/Build/source/configure +++ b/Build/source/configure @@ -20031,6 +20031,16 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test "x$mandir" = 'x${datarootdir}/man'; then + mandir='${prefix}/doc/man' + ac_configure_args="$ac_configure_args '--mandir=$mandir'" +fi + +if test "x$infodir" = 'x${datarootdir}/info'; then + infodir='${prefix}/doc/info' + ac_configure_args="$ac_configure_args '--infodir=$infodir'" +fi + if test "x$enable_web2c" = xyes && test "x$with_system_kpathsea" = xyes; then if test "x$with_kpathsea_includes" = x; then list="/usr/include /usr/local/include" diff --git a/Build/source/configure.ac b/Build/source/configure.ac index 5062218daa4..0b434ed73fd 100644 --- a/Build/source/configure.ac +++ b/Build/source/configure.ac @@ -50,6 +50,16 @@ AC_PATH_XTRA AC_PROG_CXX +if test "x$mandir" = 'x${datarootdir}/man'; then + mandir='${prefix}/doc/man' + ac_configure_args="$ac_configure_args '--mandir=$mandir'" +fi + +if test "x$infodir" = 'x${datarootdir}/info'; then + infodir='${prefix}/doc/info' + ac_configure_args="$ac_configure_args '--infodir=$infodir'" +fi + dnl Although quite unusual, it is possible to build Web2C (TeX & Co) dnl using installed (system) kpathsea headers and library. dnl In that case we need the location of . diff --git a/Build/source/texk/texlive/Makefile.am b/Build/source/texk/texlive/Makefile.am index d8cceaa6240..8fe13d769b4 100644 --- a/Build/source/texk/texlive/Makefile.am +++ b/Build/source/texk/texlive/Makefile.am @@ -1,131 +1,55 @@ ## ACLOCAL_AMFLAGS = -I ../../m4 -EXTRA_DIST = +SUBDIRS = linked_scripts -## Not yet used +dist_man1_MANS = getnonfreefonts-sys.man getnonfreefonts.man + +## Not used ## -EXTRA_DIST += \ - amstex \ - amstex.bat \ +EXTRA_DIST = \ + amstex amstex.bat \ blue.bat \ - c-auto.in \ cont-cz.bat \ - cont-de \ - cont-de.bat \ - cont-en \ - cont-en.bat \ - cont-nl \ - cont-nl.bat \ + cont-de cont-de.bat \ + cont-en cont-en.bat \ + cont-nl cont-nl.bat \ cont-ro.bat \ cont-uk.bat \ - cslatex \ - cslatex.bat \ + cslatex cslatex.bat \ cslatexd.bat \ cslatexi.bat \ cslatexk.bat \ - csplain \ - csplain.bat \ + csplain csplain.bat \ csplaind.bat \ csplaini.bat \ csplaink.bat \ einitex \ - elatex \ - elatex.bat \ - eplain \ - eplain.bat \ + elatex elatex.bat \ + eplain eplain.bat \ evirtex \ - getnonfreefonts-sys.man \ - getnonfreefonts.man \ giftopng \ - hugelatex \ - hugelatex.bat \ - hugetex \ - hugetex.bat \ + hugelatex hugelatex.bat \ + hugetex hugetex.bat \ inimf \ inimpost \ iniomega \ initex \ - jadetex \ - jadetex.bat \ - lambda \ - lamstex.bat \ + jadetex jadetex.bat \ + lambda lamstex.bat \ latex \ - linked_scripts/TeXcount.pl \ - linked_scripts/a2ping.pl \ - linked_scripts/context \ - linked_scripts/ctxtools \ - linked_scripts/dviasm.py \ - linked_scripts/e2pall.pl \ - linked_scripts/ebong.py \ - linked_scripts/epspdf \ - linked_scripts/epspdftk \ - linked_scripts/epstopdf.pl \ - linked_scripts/exatools \ - linked_scripts/fragmaster.pl \ - linked_scripts/getnonfreefonts.pl \ - linked_scripts/latex2man \ - linked_scripts/latexmk.pl \ - linked_scripts/luatools.lua \ - linked_scripts/makeglossaries \ - linked_scripts/makempy \ - linked_scripts/mkjobtexmf.pl \ - linked_scripts/mpstools \ - linked_scripts/mptopdf \ - linked_scripts/mtxrun.lua \ - linked_scripts/mtxtools \ - linked_scripts/pdfannotextractor.pl \ - linked_scripts/pdfatfi.pl \ - linked_scripts/pdfcrop.pl \ - linked_scripts/pdfthumb.texlua \ - linked_scripts/pdftools \ - linked_scripts/pdftrimwhite \ - linked_scripts/perltex \ - linked_scripts/pkfix-helper \ - linked_scripts/pkfix.pl \ - linked_scripts/ppower4.texlua \ - linked_scripts/ps2eps.pl \ - linked_scripts/ps4pdf \ - linked_scripts/pst2pdf.pl \ - linked_scripts/pstopdf \ - linked_scripts/purifyeps \ - linked_scripts/rlxtools \ - linked_scripts/rungs.tlu \ - linked_scripts/runtools \ - linked_scripts/simpdftex \ - linked_scripts/splitindex.pl \ - linked_scripts/svn-multi.pl \ - linked_scripts/texdoc.tlu \ - linked_scripts/texdoctk.pl \ - linked_scripts/texexec \ - linked_scripts/texfind \ - linked_scripts/texfont \ - linked_scripts/texmfstart.rb \ - linked_scripts/texshow \ - linked_scripts/textools \ - linked_scripts/texutil \ - linked_scripts/thumbpdf.pl \ - linked_scripts/tlmgr.pl \ - linked_scripts/tmftools \ - linked_scripts/vpe.pl \ - linked_scripts/xmltools \ lollipop.bat \ - mex \ + mex \mex.bat \ mex-pl.bat \ - mex.bat \ - mllatex \ - mllatex.bat \ - mltex \ - mltex.bat \ + mllatex mllatex.bat \ + mltex mltex.bat \ mptopdf \ nts \ - pdfcslatex \ - pdfcslatex.bat \ + pdfcslatex pdfcslatex.bat \ pdfcslatexd.bat \ pdfcslatexi.bat \ pdfcslatexk.bat \ - pdfcsplain \ - pdfcsplain.bat \ + pdfcsplain pdfcsplain.bat \ pdfcsplaind.bat \ pdfcsplaini.bat \ pdfcsplaink.bat \ @@ -133,34 +57,24 @@ EXTRA_DIST += \ pdfemex-pl.bat \ pdfevirtex \ pdfinitex \ - pdfjadetex \ - pdfjadetex.bat \ + pdfjadetex pdfjadetex.bat \ pdflatex \ - pdfmex \ + pdfmex pdfmex.bat \ pdfmex-pl.bat \ - pdfmex.bat \ pdfplatex \ pdfplatex-pl.bat \ - pdftexinfo \ - pdftexinfo.bat \ + pdftexinfo pdftexinfo.bat \ pdfvirtex \ pdfxmltex \ - physe \ - physe.bat \ - phyzzx \ - phyzzx.bat \ - platex \ + physe physe.bat \ + phyzzx phyzzx.bat \ + platex platex.bat \ platex-pl.bat \ - platex.bat \ - startex \ - startex.bat \ + startex startex.bat \ texdoc.man \ - texinfo \ - texinfo.bat \ - texsis \ - texsis.bat \ - text1 \ - text1.bat \ + texinfo texinfo.bat \ + texsis texsis.bat \ + text1 text1.bat \ tl-w32-starter.bat \ tl-w32-wrapper.texlua \ virmf \ @@ -174,5 +88,5 @@ EXTRA_DIST += \ ## Evenyually delete these files ## -EXTRA_DIST += Makefile.in.orig configure.in.orig +EXTRA_DIST += Makefile.in.orig configure.in.orig c-auto.in diff --git a/Build/source/texk/texlive/Makefile.in b/Build/source/texk/texlive/Makefile.in index 026774035f0..07de8b73f2d 100644 --- a/Build/source/texk/texlive/Makefile.in +++ b/Build/source/texk/texlive/Makefile.in @@ -30,7 +30,7 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . -DIST_COMMON = $(am__configure_deps) \ +DIST_COMMON = $(am__configure_deps) $(dist_man1_MANS) \ $(srcdir)/../../build-aux/install-sh \ $(srcdir)/../../build-aux/missing $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/configure \ @@ -48,6 +48,22 @@ mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +man1dir = $(mandir)/man1 +am__installdirs = "$(DESTDIR)$(man1dir)" +NROFF = nroff +MANS = $(dist_man1_MANS) +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) @@ -144,57 +160,29 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I ../../m4 -EXTRA_DIST = amstex amstex.bat blue.bat c-auto.in cont-cz.bat cont-de \ +SUBDIRS = linked_scripts +dist_man1_MANS = getnonfreefonts-sys.man getnonfreefonts.man +EXTRA_DIST = amstex amstex.bat blue.bat cont-cz.bat cont-de \ cont-de.bat cont-en cont-en.bat cont-nl cont-nl.bat \ cont-ro.bat cont-uk.bat cslatex cslatex.bat cslatexd.bat \ cslatexi.bat cslatexk.bat csplain csplain.bat csplaind.bat \ csplaini.bat csplaink.bat einitex elatex elatex.bat eplain \ - eplain.bat evirtex getnonfreefonts-sys.man getnonfreefonts.man \ - giftopng hugelatex hugelatex.bat hugetex hugetex.bat inimf \ - inimpost iniomega initex jadetex jadetex.bat lambda \ - lamstex.bat latex linked_scripts/TeXcount.pl \ - linked_scripts/a2ping.pl linked_scripts/context \ - linked_scripts/ctxtools linked_scripts/dviasm.py \ - linked_scripts/e2pall.pl linked_scripts/ebong.py \ - linked_scripts/epspdf linked_scripts/epspdftk \ - linked_scripts/epstopdf.pl linked_scripts/exatools \ - linked_scripts/fragmaster.pl linked_scripts/getnonfreefonts.pl \ - linked_scripts/latex2man linked_scripts/latexmk.pl \ - linked_scripts/luatools.lua linked_scripts/makeglossaries \ - linked_scripts/makempy linked_scripts/mkjobtexmf.pl \ - linked_scripts/mpstools linked_scripts/mptopdf \ - linked_scripts/mtxrun.lua linked_scripts/mtxtools \ - linked_scripts/pdfannotextractor.pl linked_scripts/pdfatfi.pl \ - linked_scripts/pdfcrop.pl linked_scripts/pdfthumb.texlua \ - linked_scripts/pdftools linked_scripts/pdftrimwhite \ - linked_scripts/perltex linked_scripts/pkfix-helper \ - linked_scripts/pkfix.pl linked_scripts/ppower4.texlua \ - linked_scripts/ps2eps.pl linked_scripts/ps4pdf \ - linked_scripts/pst2pdf.pl linked_scripts/pstopdf \ - linked_scripts/purifyeps linked_scripts/rlxtools \ - linked_scripts/rungs.tlu linked_scripts/runtools \ - linked_scripts/simpdftex linked_scripts/splitindex.pl \ - linked_scripts/svn-multi.pl linked_scripts/texdoc.tlu \ - linked_scripts/texdoctk.pl linked_scripts/texexec \ - linked_scripts/texfind linked_scripts/texfont \ - linked_scripts/texmfstart.rb linked_scripts/texshow \ - linked_scripts/textools linked_scripts/texutil \ - linked_scripts/thumbpdf.pl linked_scripts/tlmgr.pl \ - linked_scripts/tmftools linked_scripts/vpe.pl \ - linked_scripts/xmltools lollipop.bat mex mex-pl.bat mex.bat \ + eplain.bat evirtex giftopng hugelatex hugelatex.bat hugetex \ + hugetex.bat inimf inimpost iniomega initex jadetex jadetex.bat \ + lambda lamstex.bat latex lollipop.bat mex \mex.bat mex-pl.bat \ mllatex mllatex.bat mltex mltex.bat mptopdf nts pdfcslatex \ pdfcslatex.bat pdfcslatexd.bat pdfcslatexi.bat pdfcslatexk.bat \ pdfcsplain pdfcsplain.bat pdfcsplaind.bat pdfcsplaini.bat \ pdfcsplaink.bat pdfeinitex pdfemex-pl.bat pdfevirtex pdfinitex \ - pdfjadetex pdfjadetex.bat pdflatex pdfmex pdfmex-pl.bat \ - pdfmex.bat pdfplatex pdfplatex-pl.bat pdftexinfo \ + pdfjadetex pdfjadetex.bat pdflatex pdfmex pdfmex.bat \ + pdfmex-pl.bat pdfplatex pdfplatex-pl.bat pdftexinfo \ pdftexinfo.bat pdfvirtex pdfxmltex physe physe.bat phyzzx \ - phyzzx.bat platex platex-pl.bat platex.bat startex startex.bat \ + phyzzx.bat platex platex.bat platex-pl.bat startex startex.bat \ texdoc.man texinfo texinfo.bat texsis texsis.bat text1 \ text1.bat tl-w32-starter.bat tl-w32-wrapper.texlua virmf \ virmpost viromega virtex xeinitex xelatex xevirtex xmltex \ - Makefile.in.orig configure.in.orig -all: all-am + Makefile.in.orig configure.in.orig c-auto.in +all: all-recursive .SUFFIXES: am--refresh: @@ -230,12 +218,169 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +install-man1: $(dist_man1_MANS) + @$(NORMAL_INSTALL) + test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" + @list='$(dist_man1_MANS)'; \ + for i in $$list; do \ + if test -f $$i; then file=$$i; \ + else file=$(srcdir)/$$i; fi; \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 1*) ;; \ + *) ext='1' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ + done +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list='$(dist_man1_MANS)'; \ + for i in $$list; do \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 1*) ;; \ + *) ext='1' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ + rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ + done + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique tags: TAGS -TAGS: +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi ctags: CTAGS -CTAGS: - +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) @@ -265,6 +410,23 @@ distdir: $(DISTFILES) || exit 1; \ fi; \ done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + distdir) \ + || exit 1; \ + fi; \ + done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ @@ -369,18 +531,22 @@ distcleancheck: distclean $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am +check: check-recursive +all-am: Makefile $(MANS) +installdirs: installdirs-recursive +installdirs-am: + for dir in "$(DESTDIR)$(man1dir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am -installcheck: installcheck-am +installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ @@ -396,77 +562,83 @@ distclean-generic: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -clean: clean-am +clean: clean-recursive clean-am: clean-generic mostlyclean-am -distclean: distclean-am +distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile -distclean-am: clean-am distclean-generic +distclean-am: clean-am distclean-generic distclean-tags -dvi: dvi-am +dvi: dvi-recursive dvi-am: -html: html-am +html: html-recursive -info: info-am +info: info-recursive info-am: -install-data-am: +install-data-am: install-man -install-dvi: install-dvi-am +install-dvi: install-dvi-recursive install-exec-am: -install-html: install-html-am +install-html: install-html-recursive -install-info: install-info-am +install-info: install-info-recursive -install-man: +install-man: install-man1 -install-pdf: install-pdf-am +install-pdf: install-pdf-recursive -install-ps: install-ps-am +install-ps: install-ps-recursive installcheck-am: -maintainer-clean: maintainer-clean-am +maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic -mostlyclean: mostlyclean-am +mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic -pdf: pdf-am +pdf: pdf-recursive pdf-am: -ps: ps-am +ps: ps-recursive ps-am: -uninstall-am: +uninstall-am: uninstall-man + +uninstall-man: uninstall-man1 -.MAKE: install-am install-strip +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ + install-strip -.PHONY: all all-am am--refresh check check-am clean clean-generic dist \ - dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \ - dist-zip distcheck distclean distclean-generic distcleancheck \ - distdir distuninstallcheck dvi dvi-am html html-am info \ - info-am install install-am install-data install-data-am \ - install-dvi install-dvi-am install-exec install-exec-am \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ + dist-lzma dist-shar dist-tarZ dist-zip distcheck distclean \ + distclean-generic distclean-tags distcleancheck distdir \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-man1 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ - uninstall-am + installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ + uninstall-man uninstall-man1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/Build/source/texk/texlive/configure b/Build/source/texk/texlive/configure index b26fc90cddc..318462f5b01 100755 --- a/Build/source/texk/texlive/configure +++ b/Build/source/texk/texlive/configure @@ -3541,7 +3541,7 @@ $as_echo "no" >&6; } fi -ac_config_files="$ac_config_files Makefile" +ac_config_files="$ac_config_files Makefile linked_scripts/Makefile" cat >confcache <<\_ACEOF @@ -4187,6 +4187,7 @@ do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "linked_scripts/Makefile") CONFIG_FILES="$CONFIG_FILES linked_scripts/Makefile" ;; *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} diff --git a/Build/source/texk/texlive/configure.ac b/Build/source/texk/texlive/configure.ac index c3ccbaccdbb..094ca7c8d2d 100644 --- a/Build/source/texk/texlive/configure.ac +++ b/Build/source/texk/texlive/configure.ac @@ -20,6 +20,6 @@ AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile linked_scripts/Makefile]) AC_OUTPUT diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.am b/Build/source/texk/texlive/linked_scripts/Makefile.am new file mode 100644 index 00000000000..7ae19d440e5 --- /dev/null +++ b/Build/source/texk/texlive/linked_scripts/Makefile.am @@ -0,0 +1,138 @@ +## +## TeX Live's extra scripts. + +## Make sure $(bindir) exists +## +bin_SCRIPTS = + +## Copies of these scripts exist here for the sake of avoiding +## dangling symlinks produced by `make install'. +## The instances in texmf* or are the masters (except when it is CTAN). + +scriptxdir = ${prefix}/texmf/scripts +nobase_dist_scriptx_SCRIPTS = \ + a2ping/a2ping.pl \ + epstopdf/epstopdf.pl \ + pkfix/pkfix.pl \ + ps2eps/ps2eps.pl \ + simpdftex/simpdftex \ + tetex/e2pall.pl \ + tetex/texdoctk.pl \ + texdoc/texdoc.tlu \ + texlive/getnonfreefonts.pl \ + texlive/rungs.tlu \ + texlive/tlmgr.pl + +scriptdir = ${prefix}/texmf-dist/scripts +nobase_dist_script_SCRIPTS = \ + bengali/ebong.py \ + context/lua/luatools.lua \ + context/lua/mtxrun.lua \ + context/ruby/texmfstart.rb \ + context/stubs/unix/context \ + context/stubs/unix/ctxtools \ + context/stubs/unix/exatools \ + context/stubs/unix/makempy \ + context/stubs/unix/mpstools \ + context/stubs/unix/mptopdf \ + context/stubs/unix/mtxtools \ + context/stubs/unix/pdftools \ + context/stubs/unix/pdftrimwhite \ + context/stubs/unix/pstopdf \ + context/stubs/unix/rlxtools \ + context/stubs/unix/runtools \ + context/stubs/unix/texexec \ + context/stubs/unix/texfind \ + context/stubs/unix/texfont \ + context/stubs/unix/texshow \ + context/stubs/unix/textools \ + context/stubs/unix/texutil \ + context/stubs/unix/tmftools \ + context/stubs/unix/xmltools \ + dviasm/dviasm.py \ + epspdf/epspdf \ + epspdf/epspdftk \ + fragmaster/fragmaster.pl \ + glossaries/makeglossaries \ + latex2man/latex2man \ + latexmk/latexmk.pl \ + mkjobtexmf/mkjobtexmf.pl \ + oberdiek/pdfatfi.pl \ + pax/pdfannotextractor.pl \ + pdfcrop/pdfcrop.pl \ + perltex/perltex \ + pkfix-helper/pkfix-helper \ + ppower4/pdfthumb.texlua \ + ppower4/ppower4.texlua \ + pst-pdf/ps4pdf \ + pst2pdf/pst2pdf.pl \ + purifyeps/purifyeps \ + splitindex/perl/splitindex.pl \ + svn-multi/svn-multi.pl \ + texcount/TeXcount.pl \ + texloganalyser/texloganalyser \ + thumbpdf/thumbpdf.pl \ + vpe/vpe.pl + +## The idea is to install the scripts themselves in texmf*/scripts, and +## have bin/arch/foo be a symlink to, say, +## ../../texmf/scripts/foo/foo.pl. That way we save a bit of disk space, +## but more importantly omit duplication, and most importantly make it +## possible to invoke the same Perl script on Windows (via +## tl-w32-wrapper.texlua). +## +## The installation into texmf*/scripts is ideally done with ctan2tl. +## The copy of the texlua wrapper for Windows is also done by hand, but +## could/should also be done by ctan2tl. The check-wrapper-consistency +## script at least checks after the fact for problems. +## +## We also keep a copy of all the scripts here and install into the runtime. +## This is purely for other distro builders, so symlinks are not dangling in +## the inst/bin dir (it is meaningless in native TL). We have not yet +## written the auto-update to ensure linked_scripts is actually up to date +## with the masters in Master/texmf*/scripts, but it will happen. +## +## We support both multiplatform and non-multiplatform builds. +install-data-hook: + case "$(bindir)" in \ + */bin) $(MAKE) $(AM_MAKEFLAGS) REL=.. install-links;; \ + */bin/*) $(MAKE) $(AM_MAKEFLAGS) REL=../.. install-links;; \ + *) echo "strange directory '$(bindir)' for linked scripts" >&2; \ + exit 1;; \ + esac + +## Link to the basename, removing any extension, +## downcase for the sake of TeXcount.pl -> texcount. +.PHONY: install-links +install-links: + @cd $(DESTDIR)$(bindir) && \ + for s in $(nobase_dist_scriptx_SCRIPTS); do \ + target=`basename $$s | sed 's,\.[^/]*$$,,' | tr '[A-Z]' '[a-z]'`; \ + target=$$target; \ + rm -f $$target; \ + echo "creating link '$$target' -> '$(REL)/texmf/scripts/$$s'"; \ + $(LN_S) $(REL)/texmf/scripts/$$s $$target; \ + done; \ + for s in $(nobase_dist_script_SCRIPTS); do \ + target=`basename $$s | sed 's,\.[^/]*$$,,' | tr '[A-Z]' '[a-z]'`; \ + target=$$target; \ + rm -f $$target; \ + echo "creating link '$$target' -> '$(REL)/texmf-dist/scripts/$$s'"; \ + $(LN_S) $(REL)/texmf-dist/scripts/$$s $$target; \ + done; \ + rm -rf getnonfreefonts-sys; \ + echo "creating link 'getnonfreefonts-sys' -> 'getnonfreefonts'"; \ + $(LN_S) getnonfreefonts getnonfreefonts-sys; \ +## man dir link for those mans which can use it. + rm -f man; \ + echo "creating link 'man' -> '$(REL)/texmf/doc/man'"; \ + ln -s $(REL)/texmf/doc/man man || : + +uninstall-hook: + @for s in $(nobase_dist_scriptx_SCRIPTS) $(nobase_dist_script_SCRIPTS); do \ + target=`basename $$s | sed 's,\.[^/]*$$,,' | tr '[A-Z]' '[a-z]'`; \ + target=$$target; \ + rm -f $(DESTDIR)$(bindir)/$$target; \ + done + rm -f $(DESTDIR)$(bindir)/getnonfreefonts-sys $(DESTDIR)$(bindir)/man + diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.in b/Build/source/texk/texlive/linked_scripts/Makefile.in new file mode 100644 index 00000000000..ca3a1f91a67 --- /dev/null +++ b/Build/source/texk/texlive/linked_scripts/Makefile.in @@ -0,0 +1,493 @@ +# Makefile.in generated by automake 1.10.2 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = linked_scripts +DIST_COMMON = $(nobase_dist_script_SCRIPTS) \ + $(nobase_dist_scriptx_SCRIPTS) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(scriptdir)" \ + "$(DESTDIR)$(scriptxdir)" +binSCRIPT_INSTALL = $(INSTALL_SCRIPT) +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +nobase_dist_scriptSCRIPT_INSTALL = $(install_sh_SCRIPT) +nobase_dist_scriptxSCRIPT_INSTALL = $(install_sh_SCRIPT) +SCRIPTS = $(bin_SCRIPTS) $(nobase_dist_script_SCRIPTS) \ + $(nobase_dist_scriptx_SCRIPTS) +SOURCES = +DIST_SOURCES = +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EXEEXT = @EXEEXT@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +bin_SCRIPTS = +scriptxdir = ${prefix}/texmf/scripts +nobase_dist_scriptx_SCRIPTS = \ + a2ping/a2ping.pl \ + epstopdf/epstopdf.pl \ + pkfix/pkfix.pl \ + ps2eps/ps2eps.pl \ + simpdftex/simpdftex \ + tetex/e2pall.pl \ + tetex/texdoctk.pl \ + texdoc/texdoc.tlu \ + texlive/getnonfreefonts.pl \ + texlive/rungs.tlu \ + texlive/tlmgr.pl + +scriptdir = ${prefix}/texmf-dist/scripts +nobase_dist_script_SCRIPTS = \ + bengali/ebong.py \ + context/lua/luatools.lua \ + context/lua/mtxrun.lua \ + context/ruby/texmfstart.rb \ + context/stubs/unix/context \ + context/stubs/unix/ctxtools \ + context/stubs/unix/exatools \ + context/stubs/unix/makempy \ + context/stubs/unix/mpstools \ + context/stubs/unix/mptopdf \ + context/stubs/unix/mtxtools \ + context/stubs/unix/pdftools \ + context/stubs/unix/pdftrimwhite \ + context/stubs/unix/pstopdf \ + context/stubs/unix/rlxtools \ + context/stubs/unix/runtools \ + context/stubs/unix/texexec \ + context/stubs/unix/texfind \ + context/stubs/unix/texfont \ + context/stubs/unix/texshow \ + context/stubs/unix/textools \ + context/stubs/unix/texutil \ + context/stubs/unix/tmftools \ + context/stubs/unix/xmltools \ + dviasm/dviasm.py \ + epspdf/epspdf \ + epspdf/epspdftk \ + fragmaster/fragmaster.pl \ + glossaries/makeglossaries \ + latex2man/latex2man \ + latexmk/latexmk.pl \ + mkjobtexmf/mkjobtexmf.pl \ + oberdiek/pdfatfi.pl \ + pax/pdfannotextractor.pl \ + pdfcrop/pdfcrop.pl \ + perltex/perltex \ + pkfix-helper/pkfix-helper \ + ppower4/pdfthumb.texlua \ + ppower4/ppower4.texlua \ + pst-pdf/ps4pdf \ + pst2pdf/pst2pdf.pl \ + purifyeps/purifyeps \ + splitindex/perl/splitindex.pl \ + svn-multi/svn-multi.pl \ + texcount/TeXcount.pl \ + texloganalyser/texloganalyser \ + thumbpdf/thumbpdf.pl \ + vpe/vpe.pl + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign linked_scripts/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign linked_scripts/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-binSCRIPTS: $(bin_SCRIPTS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_SCRIPTS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + if test -f $$d$$p; then \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \ + else :; fi; \ + done + +uninstall-binSCRIPTS: + @$(NORMAL_UNINSTALL) + @list='$(bin_SCRIPTS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done +install-nobase_dist_scriptSCRIPTS: $(nobase_dist_script_SCRIPTS) + @$(NORMAL_INSTALL) + test -z "$(scriptdir)" || $(MKDIR_P) "$(DESTDIR)$(scriptdir)" + @$(am__vpath_adj_setup) \ + list='$(nobase_dist_script_SCRIPTS)'; for p in $$list; do \ + $(am__vpath_adj) p=$$f; \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + if test -f $$d$$p; then \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + f=`echo "$$p" | sed 's|[^/]*$$||'`"$$f"; \ + echo " $(nobase_dist_scriptSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(scriptdir)/$$f'"; \ + $(nobase_dist_scriptSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(scriptdir)/$$f"; \ + else :; fi; \ + done + +uninstall-nobase_dist_scriptSCRIPTS: + @$(NORMAL_UNINSTALL) + @$(am__vpath_adj_setup) \ + list='$(nobase_dist_script_SCRIPTS)'; for p in $$list; do \ + $(am__vpath_adj) p=$$f; \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + f=`echo "$$p" | sed 's|[^/]*$$||'`"$$f"; \ + echo " rm -f '$(DESTDIR)$(scriptdir)/$$f'"; \ + rm -f "$(DESTDIR)$(scriptdir)/$$f"; \ + done +install-nobase_dist_scriptxSCRIPTS: $(nobase_dist_scriptx_SCRIPTS) + @$(NORMAL_INSTALL) + test -z "$(scriptxdir)" || $(MKDIR_P) "$(DESTDIR)$(scriptxdir)" + @$(am__vpath_adj_setup) \ + list='$(nobase_dist_scriptx_SCRIPTS)'; for p in $$list; do \ + $(am__vpath_adj) p=$$f; \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + if test -f $$d$$p; then \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + f=`echo "$$p" | sed 's|[^/]*$$||'`"$$f"; \ + echo " $(nobase_dist_scriptxSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(scriptxdir)/$$f'"; \ + $(nobase_dist_scriptxSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(scriptxdir)/$$f"; \ + else :; fi; \ + done + +uninstall-nobase_dist_scriptxSCRIPTS: + @$(NORMAL_UNINSTALL) + @$(am__vpath_adj_setup) \ + list='$(nobase_dist_scriptx_SCRIPTS)'; for p in $$list; do \ + $(am__vpath_adj) p=$$f; \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + f=`echo "$$p" | sed 's|[^/]*$$||'`"$$f"; \ + echo " rm -f '$(DESTDIR)$(scriptxdir)/$$f'"; \ + rm -f "$(DESTDIR)$(scriptxdir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(SCRIPTS) +installdirs: + for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(scriptdir)" "$(DESTDIR)$(scriptxdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-nobase_dist_scriptSCRIPTS \ + install-nobase_dist_scriptxSCRIPTS + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-data-hook + +install-dvi: install-dvi-am + +install-exec-am: install-binSCRIPTS + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binSCRIPTS uninstall-nobase_dist_scriptSCRIPTS \ + uninstall-nobase_dist_scriptxSCRIPTS + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) uninstall-hook + +.MAKE: install-am install-data-am install-strip uninstall-am + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-binSCRIPTS install-data \ + install-data-am install-data-hook install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man \ + install-nobase_dist_scriptSCRIPTS \ + install-nobase_dist_scriptxSCRIPTS install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am uninstall uninstall-am uninstall-binSCRIPTS \ + uninstall-hook uninstall-nobase_dist_scriptSCRIPTS \ + uninstall-nobase_dist_scriptxSCRIPTS + + +install-data-hook: + case "$(bindir)" in \ + */bin) $(MAKE) $(AM_MAKEFLAGS) REL=.. install-links;; \ + */bin/*) $(MAKE) $(AM_MAKEFLAGS) REL=../.. install-links;; \ + *) echo "strange directory '$(bindir)' for linked scripts" >&2; \ + exit 1;; \ + esac + +.PHONY: install-links +install-links: + @cd $(DESTDIR)$(bindir) && \ + for s in $(nobase_dist_scriptx_SCRIPTS); do \ + target=`basename $$s | sed 's,\.[^/]*$$,,' | tr '[A-Z]' '[a-z]'`; \ + target=$$target; \ + rm -f $$target; \ + echo "creating link '$$target' -> '$(REL)/texmf/scripts/$$s'"; \ + $(LN_S) $(REL)/texmf/scripts/$$s $$target; \ + done; \ + for s in $(nobase_dist_script_SCRIPTS); do \ + target=`basename $$s | sed 's,\.[^/]*$$,,' | tr '[A-Z]' '[a-z]'`; \ + target=$$target; \ + rm -f $$target; \ + echo "creating link '$$target' -> '$(REL)/texmf-dist/scripts/$$s'"; \ + $(LN_S) $(REL)/texmf-dist/scripts/$$s $$target; \ + done; \ + rm -rf getnonfreefonts-sys; \ + echo "creating link 'getnonfreefonts-sys' -> 'getnonfreefonts'"; \ + $(LN_S) getnonfreefonts getnonfreefonts-sys; \ + rm -f man; \ + echo "creating link 'man' -> '$(REL)/texmf/doc/man'"; \ + ln -s $(REL)/texmf/doc/man man || : + +uninstall-hook: + @for s in $(nobase_dist_scriptx_SCRIPTS) $(nobase_dist_script_SCRIPTS); do \ + target=`basename $$s | sed 's,\.[^/]*$$,,' | tr '[A-Z]' '[a-z]'`; \ + target=$$target; \ + rm -f $(DESTDIR)$(bindir)/$$target; \ + done + rm -f $(DESTDIR)$(bindir)/getnonfreefonts-sys $(DESTDIR)$(bindir)/man +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Build/source/texk/texlive/linked_scripts/texloganalyser/texloganalyser b/Build/source/texk/texlive/linked_scripts/texloganalyser/texloganalyser new file mode 100755 index 00000000000..bcd0ef992cc --- /dev/null +++ b/Build/source/texk/texlive/linked_scripts/texloganalyser/texloganalyser @@ -0,0 +1,342 @@ +#!/usr/bin/env perl +# This is texloganalyser, for parsing of TeX logs +# Copyright (c) 2006-2009 Thomas van Oudenhove +# All rights reserved + +# README - important notice: +# you should feed the first line with the path of your Perl executable +# (on *nix systems, the output of 'which perl') +# +# (this program works at least with perl 5.8.8) +# Getopt::Long MUST be installed on your system for this program to work + +# License: +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +use warnings; +use strict; +use Getopt::Long; +Getopt::Long::Configure ("bundling"); + +my $version = "0.6"; +my $copyright = "2006-2009"; +my $opt = { + help => '', + version => '', + h => '', + o => '', + u => '', + v => '', + p => '', + f => '', + w => '', + e => '', + i => '', + s => '', + r => '', + t => '', + }; + +GetOptions( + 'help' => \$opt->{help}, + 'version' => \$opt->{version}, + 'h' => \$opt->{h}, + 'o' => \$opt->{o}, + 'u' => \$opt->{u}, + 'v' => \$opt->{v}, + 'p' => \$opt->{p}, + 'f' => \$opt->{f}, + 'w' => \$opt->{w}, + 'e' => \$opt->{e}, + 'i' => \$opt->{i}, + 't' => \$opt->{t}, + 's' => \$opt->{s}, + 'r' => \$opt->{r}, + ); + +my $abstract = { + warnings => 0, + }; + +my $texlog = $ARGV[-1]; + +die "Usage: $0 ".options()." \n" + if (not defined $texlog and (not $opt->{help} and + not $opt->{version})); + +if ($opt->{help}) { + printhelp(); + exit(); +} + +if ($opt->{version}) { + printversion(); + exit(); +} + +analyze(); + +sub analyze { + my $line; + my $output; + my $test = 0; + + open my $source, "<", $texlog; + while (defined ($line = <$source>)) { + undef $output; + # display summary and page numbers (default) + summary($line); + pagenumber($line); + + if ($opt->{e}) { + if ($line =~ m/Here is how much/) { + $test = 1; + $output = "\n"; + } + $output .= $line if $test; + } + # look for boxes warnings + if ($opt->{o} and $opt->{h}) { + $output = $line if ($line =~ m/\\hbox/ and + $line =~ m/Overfull/); + } elsif ($opt->{u} and $opt->{h}) { + $output = $line if ($line =~ m/\\hbox/ and + $line =~ m/Underfull/); + } elsif ($opt->{o} and $opt->{v}) { + $output = $line if ($line =~ m/\\vbox/ and + $line =~ m/Overfull/); + } elsif ($opt->{u} and $opt->{v}) { + $output = $line if ($line =~ m/\\vbox/ and + $line =~ m/Underfull/); + } elsif ($opt->{h} and $opt->{v}) { + $output = $line if ($line =~ m/\\vbox/ or + $line =~ m/\\hbox/); + } elsif ($opt->{o} and $opt->{u}) { + $output = $line if ($line =~ m/Underfull/ or + $line =~ m/Overfull/); + } elsif ($opt->{h}) { + $output = $line if ($line =~ m/\\hbox/); + } elsif ($opt->{v}) { + $output = $line if ($line =~ m/\\vbox/); + } elsif ($opt->{o}) { + $output = $line if ($line =~ m/Overfull/); + } elsif ($opt->{u}) { + $output = $line if ($line =~ m/Underfull/); + } + # look for LaTeX Font Info + if ($opt->{f}) { + $output = $line if ($line =~ m/Font Info/); + } + # packages infos + if ($opt->{p}) { + $output = $line if ($line =~ m/Package/); + } + # references warnings + if ($opt->{r}) { + $output = $line if ($line =~ m/Reference/ or + $line =~ m/Label(.*)/ and $1 =~ m/multiply defined/); + } + # TeX files used + if ($opt->{t}) { + scannedfiles($line, "tex"); + } + # sty and cls files used + if ($opt->{s}) { + scannedfiles($line, "sty"); + scannedfiles($line, "cls"); + } + # images (pdf, ps, jpg, png) + if ($opt->{i}) { + foreach my $t ('pdf', 'eps', 'ps', 'png', 'jpg') { + scannedfiles($line, $t); + } + } + # display all warnings + if ($opt->{w}) { + $output = $line if ($line =~ m/Warning/); + } + print "$output" if defined $output; + } + print "\n"; + print_abstract(); + close $source; +} + +sub pagenumber { + my $logline = shift; + if ($logline =~ m/.*(\[[0-9]+)/) { + print $1."]"; + } +} + +sub scannedfiles { + my ($logline, $filetype) = @_; + if ($logline =~ m/^\((.*\.$filetype)/i) { + print "(".$1.")"; + } +} + +sub summary { + my $line = shift; + # prints log summary () + $abstract->{warnings} += 1 if ($line =~ m/Warning/); +} + +sub options { + my $stropts = "["; + my $multopt = ''; + foreach my $k (sort keys %{$opt}) { + if ($k eq 'version') { + $stropts .= "--version|"; + } elsif ($k eq 'help') { + $stropts .= "--help|"; + } else { + $multopt .= $k; + } + } + $stropts .= '-'.$multopt.']'; + return $stropts; +} + +sub print_abstract { + print "The log contained ".$abstract->{warnings}." warnings.\n"; +} + +sub printversion { + print "This is texloganalyser, version $version\n"; + print "\t Copyright $copyright Thomas van Oudenhove\n"; +} + +sub printhelp { + printversion(); + print "Usage: texloganalyser ".options()." \n"; + print "\t Displays selective infos of LaTeX logs\n"; + print "These flags may be used:\n"; + print "\t e: displays the end of the log\n"; + print "\t f: outputs the LaTeX Font Infos\n"; + print "\t h: outputs only warnings about horizontal boxes\n"; + print "\t i: displays 'images' (pdf, [e]ps, png, jpg) used\n"; + print "\t o: outputs only warnings about overfull boxes\n"; + print "\t p: outputs the LaTeX Packages infos\n"; + print "\t r: displays warnings about references\n"; + print "\t s: displays .sty and .cls files used\n"; + print "\t t: displays .tex files used\n"; + print "\t u: outputs only warnings about underfull boxes\n"; + print "\t v: outputs only warnings about vertical boxes\n"; + print "\t w: displays all Warnings\n"; + print "You may want to have a look at `perldoc texloganalyser`.\n"; +} + +__END__ + + +=pod + +=head1 texloganalyser Documentation + +=head2 NAME + +texloganalyser -- displays selective infos from TeX log files + +=head2 SYNOPSIS + +texloganalyser [-efhioprstuvw] tex_log_file + +texloganalyser [--version] + +texloganalyser [--help] + +=head2 DESCRIPTION + +Various options may be used to select which information from the TeX log you want to see/analyze (see next section). The default is to display only page numbers (page numbers are B displayed). + +=head2 OPTIONS + +=over 1 + +=item B<--version>: displays version information. + +=item B<--help>: displays help as a summary of options. + +=item B<-e>: displays the end of the log, about the TeX's memory. + +=item B<-f>: outputs the LaTeX Font Infos warnings and calculations. + +=item B<-h>: outputs only warnings about horizontal boxes. + +=item B<-i>: displays 'images' (pdf, [e]ps, png, jpg) used. + +=item B<-o>: outputs only warnings about overfull boxes. + +=item B<-p>: outputs the LaTeX Packages infos and warnings. + +=item B<-r>: displays warnings about references (missing or multiply-defined). + +=item B<-s>: displays .sty and .cls files used. + +=item B<-t>: displays .tex files used. This option is B useful when you parse logs of master files, to know in which file to look to correct errors/warnings. + +=item B<-u>: outputs only warnings about underfull boxes. + +=item B<-v>: outputs only warnings about vertical boxes. + +=item B<-w>: displays all TeX, LaTeX and font Warnings. + +=back + +=head2 BUGS + +None yet identified. However, the display should be improved... + +=head2 HISTORY + +This program was first released in 2006. Its purpose was to display selective information of my PhD's TeX log. + +=head3 Changelog + +=over + +=item v0.6: default displays number of warnings (and page numbers). + + added option: references and label warnings + +=item v0.5: use of GetOpt::Long and code cleaning + + added options: display of files used + improved documentation + +=item v0.4: added features and bugs corrections (options h, v, o and u) + +=item v0.3: display of Warnings and last lines of the log + +=item v0.2: display of "Font Info" and "Packages" added + +=item v0.1: first version, displays only warnings about boxes + +=back + +=head2 AUTHORS + +I is a program by Thomas van Oudenhove (L). Feel free to contact him for features requests or bugs. + +=cut diff --git a/Build/source/texk/texlive/tl-w32-starter.bat b/Build/source/texk/texlive/tl-w32-starter.bat old mode 100644 new mode 100755 -- cgit v1.2.3