diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-09 22:21:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-09 22:21:04 +0000 |
commit | 40f7f8ef844b86336acb970c200f1a3610da13a2 (patch) | |
tree | 1bd4e0255b656133fc2fd7cb2a8f9471a3de1455 | |
parent | aac42aaa1740149e189540854263dfe9a0ee9a24 (diff) |
rm m-tx and pmx2pdf from linked_scripts
git-svn-id: svn://tug.org/texlive/trunk@40366 c570f23f-e606-0410-a88d-b1316a301751
5 files changed, 5 insertions, 366 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/ChangeLog b/Build/source/texk/texlive/linked_scripts/ChangeLog index 3f95aec0c7a..3f55a4ac815 100644 --- a/Build/source/texk/texlive/linked_scripts/ChangeLog +++ b/Build/source/texk/texlive/linked_scripts/ChangeLog @@ -1,3 +1,7 @@ +2016-04-10 Karl Berry <karl@tug.org> + + * Makefile.am (texmf_other_scripts): remove m-tx and pmx2pdf. + 2015-04-20 Peter Breitenlohner <peb@mppmu.mpg.de> * Makefile.am (texmf_other_scripts): Add fmtutil-sys.sh and @@ -268,3 +272,4 @@ * Makefile.am (nobase_dist_script_SCRIPTS): add accfonts scripts. +(This ChangeLog public domain.) diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.am b/Build/source/texk/texlive/linked_scripts/Makefile.am index 005d0c12db6..e6347ac8ed2 100644 --- a/Build/source/texk/texlive/linked_scripts/Makefile.am +++ b/Build/source/texk/texlive/linked_scripts/Makefile.am @@ -135,7 +135,6 @@ texmf_other_scripts = \ lilyglyphs/lily-rebuild-pdfs.py \ ltximg/ltximg.pl \ luaotfload/luaotfload-tool.lua \ - m-tx/m-tx.lua \ makedtx/makedtx.pl \ make4ht/make4ht \ match_parens/match_parens \ @@ -157,7 +156,6 @@ texmf_other_scripts = \ pfarrei/pfarrei.tlu \ pkfix-helper/pkfix-helper \ pkfix/pkfix.pl \ - pmx/pmx2pdf.lua \ pmxchords/pmxchords.lua \ pst2pdf/pst2pdf.pl \ ptex2pdf/ptex2pdf.lua \ diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.in b/Build/source/texk/texlive/linked_scripts/Makefile.in index 4191059aab6..48d03928330 100644 --- a/Build/source/texk/texlive/linked_scripts/Makefile.in +++ b/Build/source/texk/texlive/linked_scripts/Makefile.in @@ -350,7 +350,6 @@ texmf_other_scripts = \ lilyglyphs/lily-rebuild-pdfs.py \ ltximg/ltximg.pl \ luaotfload/luaotfload-tool.lua \ - m-tx/m-tx.lua \ makedtx/makedtx.pl \ make4ht/make4ht \ match_parens/match_parens \ @@ -372,7 +371,6 @@ texmf_other_scripts = \ pfarrei/pfarrei.tlu \ pkfix-helper/pkfix-helper \ pkfix/pkfix.pl \ - pmx/pmx2pdf.lua \ pmxchords/pmxchords.lua \ pst2pdf/pst2pdf.pl \ ptex2pdf/ptex2pdf.lua \ diff --git a/Build/source/texk/texlive/linked_scripts/m-tx/m-tx.lua b/Build/source/texk/texlive/linked_scripts/m-tx/m-tx.lua deleted file mode 100755 index 3587a24e2c1..00000000000 --- a/Build/source/texk/texlive/linked_scripts/m-tx/m-tx.lua +++ /dev/null @@ -1,186 +0,0 @@ -#!/usr/bin/env texlua - -VERSION = "0.4" - ---[[ - m-tx.lua: processes MusiXTeX files using prepmx and pmxab as pre-processors (and deletes intermediate files) - - (c) Copyright 2011-2012 Bob Tennent rdt@cs.queensu.ca - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - ---]] - ---[[ - - ChangeLog: - - version 0.4 2013-12-11 RDT - Add -c option for pmxchords preprocessing of pmx file - Add -F fmt option to use fmt as TeX processor - - version 0.3 2012-04-09 RDT - Change name to m-tx to avoid clash with another program. - - version 0.2 2011-11-28 RDT - Added -i (retain intermediate files) option - - version 0.1.1 2011-07-18 RDT - - Removed a file check that caused it to fail (only on Windows!) - - version 0.1 2011-07-15 RDT - ---]] - -function usage() - print("Usage: [texlua] m-tx.lua { option | basename[.mtx] } ... ") - print("options: -v version") - print(" -h help") - print(" -l latex (or pdflatex)") - print(" -p pdfetex (or pdflatex)") - print(" -d dvipdfm") - print(" -c preprocess pmx file using pmxchords") - print(" -F fmt use fmt as the TeX processor") - print(" -s stop at dvi") - print(" -t stop at tex/mid") - print(" -m stop at pmx") - print(" -i retain intermediate files") - print(" -f restore default processing") -end - -function whoami () - print("This is m-tx.lua version ".. VERSION .. ".") -end - -whoami() -if #arg == 0 then - usage() - os.exit(0) -end - --- defaults: -prepmx = "prepmx" -pmx = "pmxab" -tex = "etex" -musixflx = "musixflx" -dvi = "dvips" -ps2pdf = "ps2pdf" -intermediate = 1 - -exit_code = 0 -narg = 1 -repeat - this_arg = arg[narg] - if this_arg == "-v" then - os.exit(0) - elseif this_arg == "-h" then - usage() - os.exit(0) - elseif this_arg == "-l" then - if tex == "pdfetex" then - tex = "pdflatex" - else - tex = "latex" - end - elseif this_arg == "-p" then - if tex == "latex" then - tex = "pdflatex" - else - tex = "pdfetex" - end - dvi = ""; ps2pdf = "" - elseif this_arg == "-d" then - dvi = "dvipdfm"; ps2pdf = "" - elseif this_arg == "-c" then - pmx = "pmxchords" - elseif this_arg == "-F" then - narg = narg+1 - tex = arg[narg] - elseif this_arg == "-s" then - dvi = ""; ps2pdf = "" - elseif this_arg == "-i" then - intermediate = 0 - elseif this_arg == "-f" then - pmx = "pmxab"; tex = "etex"; dvi = "dvips"; ps2pdf = "ps2pdf"; intermediate = 1 - elseif this_arg == "-t" then - tex = ""; dvi = ""; ps2pdf = "" - elseif this_arg == "-m" then - pmx = ""; tex = ""; dvi = ""; ps2pdf = "" - else - filename = this_arg - if filename ~= "" and string.sub(filename, -4, -1) == ".mtx" then - filename = string.sub(filename, 1, -5) - end - print("Processing ".. filename .. ".mtx.") - OK = true - if ( os.execute(prepmx .. " " .. filename ) ~= 0 ) then - OK = false - end - if (OK and pmx ~= "") then - os.execute(pmx .. " " .. filename) -- does pmx return an error code? - pmxaerr = io.open("pmxaerr.dat", "r") - if (not pmxaerr) then - print("No log file.") - OK = false - else - linebuf = pmxaerr:read() - err = tonumber(linebuf) - if (err ~= 0) then - OK = false - end - pmxaerr:close() - end - end - os.remove( filename .. ".mx2" ) - if ( OK ) and - (tex == "" or os.execute(tex .. " " .. filename) == 0) and - (tex == "" or os.execute(musixflx .. " " .. filename) == 0) and - (tex == "" or os.execute(tex .. " " .. filename) == 0) and - ((tex ~= "latex" and tex ~= "pdflatex") - or (os.execute(tex .. " " .. filename) == 0)) and - (dvi == "" or (os.execute(dvi .. " " .. filename) == 0)) and - (ps2pdf == "" or (os.execute(ps2pdf .. " " .. filename .. ".ps") == 0) ) - then - if ps2pdf ~= "" then - print(filename .. ".pdf generated by " .. ps2pdf .. ".") - end - if intermediate == 1 then -- clean-up: - os.remove( "pmxaerr.dat" ) - os.remove( filename .. ".mx1" ) - os.remove( filename .. ".mx2" ) - if pmx ~= "" then - os.remove( filename .. ".pmx" ) - end - if dvi ~= "" then - os.remove( filename .. ".dvi" ) - end - if ps2pdf ~= "" then - os.remove( filename .. ".ps" ) - end - end - else - print("M-Tx/pmx/MusiXTeX processing of " .. filename .. ".mtx fails.\n") - exit_code = 2 - --[[ uncomment for debugging - print("tex = ", tex) - print("dvi = ", dvi) - print("ps2pdf = ", ps2pdf) - --]] - end - end --if this_arg == ... - narg = narg+1 -until narg > #arg -os.exit( exit_code ) diff --git a/Build/source/texk/texlive/linked_scripts/pmx/pmx2pdf.lua b/Build/source/texk/texlive/linked_scripts/pmx/pmx2pdf.lua deleted file mode 100755 index 4f441763844..00000000000 --- a/Build/source/texk/texlive/linked_scripts/pmx/pmx2pdf.lua +++ /dev/null @@ -1,176 +0,0 @@ -#!/usr/bin/env texlua - -VERSION = "0.3.2" - ---[[ - pmx2pdf: processes MusiXTeX files using pmxab as a pre-processor - (and deletes intermediate files) - - (c) Copyright 2011-13 Bob Tennent rdt@cs.queensu.ca - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - ---]] - ---[[ - - ChangeLog: - - version 0.3.2 2013-12-14 RDT - restore the -c option that somehow got dropped - - version 0.3.1 2013-12-11 RDT - added -F fmt option - - version 0.3.0 2013-12-10 RDT - added -c option to preprocess using pmxchords - - version 0.2.1 2012-05-15 RDT - renamed to avoid possible name clashes - - version 0.2 2011-11-28 RDT - added -i (retain intermediate files) option - - version 0.1 2011-07-12 RDT - ---]] - -function usage() - print("Usage: [texlua] pmx2pdf { option | basename[.pmx] } ... ") - print("options: -v version") - print(" -h help") - print(" -l latex (or pdflatex)") - print(" -p pdfetex (or pdflatex)") - print(" -d dvipdfm") - print(" -s stop at dvi") - print(" -t stop at tex/mid") - print(" -i retain intermediate files") - print(" -c preprocess using pmxchords") - print(" -F fmt use fmt as the TeX processor") - print(" -f restore default processing") -end - -function whoami () - print("This is pmx2pdf version ".. VERSION .. ".") -end - -whoami() -if #arg == 0 then - usage() - os.exit(0) -end - --- defaults: -pmxab = "pmxab" -tex = "etex" -musixflx = "musixflx" -dvi = "dvips" -ps2pdf = "ps2pdf" -intermediate = 1 - -exit_code = 0 -narg = 1 -repeat - this_arg = arg[narg] - if this_arg == "-v" then - os.exit(0) - elseif this_arg == "-h" then - usage() - os.exit(0) - elseif this_arg == "-l" then - if tex == "pdfetex" then - tex = "pdflatex" - else - tex = "latex" - end - elseif this_arg == "-p" then - if tex == "latex" then - tex = "pdflatex" - else - tex = "pdfetex" - end - dvi = ""; ps2pdf = "" - elseif this_arg == "-d" then - dvi = "dvipdfm"; ps2pdf = "" - elseif this_arg == "-s" then - dvi = ""; ps2pdf = "" - elseif this_arg == "-f" then - pmxab = "pmxab"; tex = "etex"; dvi = "dvips"; ps2pdf = "ps2pdf"; intermediate = 1 - elseif this_arg == "-t" then - tex = ""; dvi = ""; ps2pdf = "" - elseif this_arg == "-i" then - intermediate = 0 - elseif this_arg == "-c" then - pmxab = "pmxchords" - elseif this_arg == "-F" then - narg = narg+1 - tex = arg[narg] - else - filename = this_arg - if filename ~= "" and string.sub(filename, -4, -1) == ".pmx" then - filename = string.sub(filename, 1, -5) - end - if not io.open(filename .. ".pmx", "r") then - print("Non-existent file: ", filename .. ".pmx") - else - print("Processing ".. filename .. ".pmx" .. " using " .. pmxab .. "." ) - os.remove( filename .. ".mx2" ) - os.execute(pmxab .. " " .. filename ) - pmxaerr = io.open("pmxaerr.dat", "r") - if (not pmxaerr) then - print("No log file.") - os.exit(1) - end - linebuf = pmxaerr:read() - err = tonumber(linebuf) - pmxaerr:close() - if ( err == 0 ) and - (tex == "" or os.execute(tex .. " " .. filename) == 0) and - (tex == "" or os.execute(musixflx .. " " .. filename) == 0) and - (tex == "" or os.execute(tex .. " " .. filename) == 0) and - ((tex ~= "latex" and tex ~= "pdflatex") - or (os.execute(tex .. " " .. filename) == 0)) and - (dvi == "" or (os.execute(dvi .. " " .. filename) == 0)) and - (ps2pdf == "" or (os.execute(ps2pdf .. " " .. filename .. ".ps") == 0) ) - then - if ps2pdf ~= "" then - print(filename .. ".pdf generated by " .. ps2pdf .. ".") - end - if intermediate == 1 then -- clean-up: - os.remove( "pmxaerr.dat" ) - os.remove( filename .. ".mx1" ) - os.remove( filename .. ".mx2" ) - if dvi ~= "" then - os.remove( filename .. ".dvi" ) - end - if ps2pdf ~= "" then - os.remove( filename .. ".ps" ) - end - end - else - print("PMX/MusiXTeX processing of " .. filename .. ".pmx fails.\n") - exit_code = 2 - --[[ uncomment for debugging - print("tex = ", tex) - print("dvi = ", dvi) - print("ps2pdf = ", ps2pdf) - --]] - end - - end --if not io.open ... - end --if this_arg == ... - narg = narg+1 -until narg > #arg -os.exit( exit_code ) |