texlive[43641] trunk: texosquery (29mar17)

commits+karl at tug.org commits+karl at tug.org
Thu Mar 30 00:46:11 CEST 2017


Revision: 43641
          http://tug.org/svn/texlive?view=revision&revision=43641
Author:   karl
Date:     2017-03-30 00:46:11 +0200 (Thu, 30 Mar 2017)
Log Message:
-----------
texosquery (29mar17)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/texlive/fmtutil.pl
    trunk/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl
    trunk/Master/texmf-dist/doc/support/texosquery/CHANGES
    trunk/Master/texmf-dist/doc/support/texosquery/README.md
    trunk/Master/texmf-dist/doc/support/texosquery/texosquery.pdf
    trunk/Master/texmf-dist/scripts/texosquery/texosquery-jre5.jar
    trunk/Master/texmf-dist/scripts/texosquery/texosquery-jre8.jar
    trunk/Master/texmf-dist/scripts/texosquery/texosquery.jar
    trunk/Master/texmf-dist/source/support/texosquery/java/TeXOSQuery.java
    trunk/Master/texmf-dist/source/support/texosquery/texosquery.dtx
    trunk/Master/texmf-dist/tex/latex/texosquery/texosquery.sty
    trunk/Master/texmf-dist/tex/latex/texosquery/texosquery.tex
    trunk/Master/tlpkg/libexec/ctan2tds

Modified: trunk/Build/source/texk/texlive/linked_scripts/texlive/fmtutil.pl
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/texlive/fmtutil.pl	2017-03-29 22:31:45 UTC (rev 43640)
+++ trunk/Build/source/texk/texlive/linked_scripts/texlive/fmtutil.pl	2017-03-29 22:46:11 UTC (rev 43641)
@@ -1,5 +1,5 @@
 #!/usr/bin/env perl
-# $Id: fmtutil.pl 43495 2017-03-14 02:22:58Z preining $
+# $Id: fmtutil.pl 43628 2017-03-28 17:55:13Z karl $
 # fmtutil - utility to maintain format files.
 # (Maintained in TeX Live:Master/texmf-dist/scripts/texlive.)
 # 
@@ -24,11 +24,11 @@
   TeX::Update->import();
 }
 
-my $svnid = '$Id: fmtutil.pl 43495 2017-03-14 02:22:58Z preining $';
-my $lastchdate = '$Date: 2017-03-14 03:22:58 +0100 (Tue, 14 Mar 2017) $';
+my $svnid = '$Id: fmtutil.pl 43628 2017-03-28 17:55:13Z karl $';
+my $lastchdate = '$Date: 2017-03-28 19:55:13 +0200 (Tue, 28 Mar 2017) $';
 $lastchdate =~ s/^\$Date:\s*//;
 $lastchdate =~ s/ \(.*$//;
-my $svnrev = '$Revision: 43495 $';
+my $svnrev = '$Revision: 43628 $';
 $svnrev =~ s/^\$Revision:\s*//;
 $svnrev =~ s/\s*\$$//;
 my $version = "r$svnrev ($lastchdate)";
@@ -1266,10 +1266,10 @@
   my $usage = <<"EOF";
 Usage: $prg     [OPTION] ... [COMMAND]
    or: $prg-sys [OPTION] ... [COMMAND]
-   or: mktexfmt FORMAT.fmt|BASE.base|MEM.mem|FMTNAME.EXT
+   or: mktexfmt FORMAT.fmt|BASE.base|FMTNAME.EXT
 
-Rebuild and manage TeX fmts, Metafont bases and MetaPost mems,
-collectively called "formats" here.
+Rebuild and manage TeX fmts and Metafont bases, collectively called
+"formats" here. (MetaPost no longer uses the past-equivalent "mems".)
 
 If the command name ends in mktexfmt, only one format can be created.
 The only options supported are --help and --version, and the command

Modified: trunk/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl	2017-03-29 22:31:45 UTC (rev 43640)
+++ trunk/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl	2017-03-29 22:46:11 UTC (rev 43641)
@@ -1,9 +1,9 @@
 #!/usr/bin/env perl
-# $Id: updmap.pl 42939 2017-01-13 14:32:10Z preining $
+# $Id: updmap.pl 43628 2017-03-28 17:55:13Z karl $
 # updmap - maintain map files for outline fonts.
 # (Maintained in TeX Live:Master/texmf-dist/scripts/texlive.)
 # 
-# Copyright 2011-2016 Norbert Preining
+# Copyright 2011-2017 Norbert Preining
 # This file is licensed under the GNU General Public License version 2
 # or any later version.
 #
@@ -14,7 +14,7 @@
 # the original versions were licensed under the following agreement:
 # Anyone may freely use, modify, and/or distribute this file, without
 
-my $svnid = '$Id: updmap.pl 42939 2017-01-13 14:32:10Z preining $';
+my $svnid = '$Id: updmap.pl 43628 2017-03-28 17:55:13Z karl $';
 
 my $TEXMFROOT;
 BEGIN {
@@ -27,10 +27,10 @@
   unshift(@INC, "$TEXMFROOT/tlpkg");
 }
 
-my $lastchdate = '$Date: 2017-01-13 15:32:10 +0100 (Fri, 13 Jan 2017) $';
+my $lastchdate = '$Date: 2017-03-28 19:55:13 +0200 (Tue, 28 Mar 2017) $';
 $lastchdate =~ s/^\$Date:\s*//;
 $lastchdate =~ s/ \(.*$//;
-my $svnrev = '$Revision: 42939 $';
+my $svnrev = '$Revision: 43628 $';
 $svnrev =~ s/^\$Revision:\s*//;
 $svnrev =~ s/\s*\$$//;
 my $version = "r$svnrev ($lastchdate)";
@@ -2262,6 +2262,7 @@
 
 The updmap system is regrettably complicated, for both inherent and
 historical reasons.  A general overview:
+
 - updmap.cfg files are mainly about listing other files, namely the
   font-specific .maps, in which each line gives information about a
   different TeX (.tfm) font.

Modified: trunk/Master/texmf-dist/doc/support/texosquery/CHANGES
===================================================================
--- trunk/Master/texmf-dist/doc/support/texosquery/CHANGES	2017-03-29 22:31:45 UTC (rev 43640)
+++ trunk/Master/texmf-dist/doc/support/texosquery/CHANGES	2017-03-29 22:46:11 UTC (rev 43641)
@@ -1,3 +1,8 @@
+1.2.1 (2017/03/28):
+
+ * Minor bug fix in texosquery.tex (fixed decimal separator
+   for numeric patterns with all # in the fractional part)
+
 1.2 (2017/03/23):
 
  * Now has three .jar files depending on the Java installation:

Modified: trunk/Master/texmf-dist/doc/support/texosquery/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/support/texosquery/README.md	2017-03-29 22:31:45 UTC (rev 43640)
+++ trunk/Master/texmf-dist/doc/support/texosquery/README.md	2017-03-29 22:46:11 UTC (rev 43641)
@@ -91,6 +91,8 @@
  - `texosquery-jre8.jar` (requires at least Java 8)
  - `texosquery-jre5.jar` (requires at least Java 5)
 
+(See the ["Security"](#security) section below.)
+
 There are corresponding bash scripts for Unix-like users (the `.sh`
 extension added by `texosquery.ins` should be removed and the files
 made executable):
@@ -140,7 +142,7 @@
 ```
 This should display the version information. (For example, `"1.8.0_92"`)
 
-If the version number starts with `1.8` (“Java 8”), then you can use `texosquery-jre8.jar`.
+If the version number starts with `1.8` ("Java 8"), then you can use `texosquery-jre8.jar`.
 This is the full application. You can use `texosquery` or 
 `texosquery-jre5` as well, but there's less locale support with them. 
 The `texosquery-jre8` bash script and `texosquery-jre8.bat` batch script invokes Java with 
@@ -156,19 +158,19 @@
 pending Java 9 should include this by default, so this will only be
 relevant to Java 8. Earlier versions of Java (7 or below) don't have
 this option, which limits the locale support to that which is
-natively provided by the JRE.
+natively provided by the JRE. Note that Java 7 and earlier versions
+[have reached their end of life](http://www.oracle.com/technetwork/java/eol-135779.html) and are now **deprecated**.
 
-If the version information starts with `1.7` (“Java 7”), then you can use 
+If the version information starts with `1.7` ("Java 7"), then you can use 
 `texosquery.jar`. This is the default application and provides most
 of the functions of the full application, but there's less locale support.
 You can also use the even more limited `texosquery-jre5`, but you can't use
 `texosquery-jre8`, so you can't take advantage of the CLDR.
 
-If the version information starts with `1.5` (“Java 5”) or `1.6`
-(“Java 6”), then you can _only_ use `texosquery-jre5`.  The locale
+If the version information starts with `1.5` ("Java 5") or `1.6`
+("Java 6"), then you can _only_ use `texosquery-jre5`.  The locale
 support is significantly reduced in this case and there's no support
-for language scripts. Note that these versions of Java are
-deprecated.
+for language scripts.
 
 Once you have determined which application you want to use, edit the
 `texosquery.cfg` so that `\TeXOSInvokerName` is defined to the appropriate invocation. For example, with Java 8:
@@ -252,6 +254,91 @@
 For a full list of available commands, see the documentation
 (`texosquery.pdf`).
 
+## Troubleshooting
+
+If something goes wrong with the call to `texosquery`, the control
+sequence will be set to empty. If this happens, here are the steps
+to diagnose the problem:
+
+  1. Check the log file for any lines starting with `TeXOSQuery:`
+     For example: `TeXOSQuery: texosquery-jre8 --pdfnow`
+     If found, this means that the dry run mode was on and the shell
+     escape wasn't used. Ensure that the shell escape is
+     enabled when you build the document.
+  2. If the log file contains `(|texosquery` _options_`)` then the
+     shell escape was used but `texosquery` returned an empty value.
+     In this case, copy the part between `(|` and `)` and paste it
+     into a command prompt or terminal but insert `--debug` at the
+     start of the options list. For example, if the log file
+     contains `(|texosquery-jre8 --cwd)` then run
+```sh
+texosquery-jre8 --debug --cwd
+```
+
+This should now display an error message explaining the
+problem. (For example, read access forbidden or file not found
+or a security exception.)
+
+## Security
+
+As from version 1.2, all variants of `texosquery` (JRE5, 7 and 8)
+obey TeX's `openin_any` setting. Any of the actions that involve
+reading file information won't work if read access is forbidden by 
+`openin_any` or by the operating system.
+
+In addition to obeying `openin_any`, the file listing actions (such
+as `--list`) for the JRE7 and 8 variants also prohibit listing the
+contents outside of the current working directory's path. This means
+that you can't, for example, list the contents of `..` (the current
+working directory's parent) nor can you try walking the entire file
+system.  The `--walk` action additionally won't descend hidden
+directories. This extra restriction is designed to prevent malicious
+code from trying to use `texosquery` to look around your filing
+system.
+
+The Java 5 version `texosquery-jre5` is the least secure and doesn't
+have this additional restriction on the file listing actions. However,
+it still obeys `openin_any`. The `--walk` action is not available
+with `texosquery-jre5`.
+
+Examples:
+```bash
+texosquery-jre8 --debug --walk ',' '.*' /
+```
+This action is forbidden:
+```
+texosquery-jre8: Can't walk directory: /
+```
+Changing `/` to `.` is allowed, but not for `texosquery-jre5`:
+```bash
+texosquery-jre5 --debug --walk ',' '.*' .
+```
+returns:
+```
+texosquery-jre5: walk requires at least JRE 7 version
+```
+With `openin_any=a`, the `--userhome` action is usually allowed
+(depends on the operating system and Java's security manager).
+```bash
+texosquery-jre8 --debug --userhome
+```
+returns
+```
+\fslh home\fslh nlct
+```
+(which `\TeXOSQuery` converts to `/home/nlct`.)
+
+However, unless this also happens to be the current working
+directory, it's not possible to obtain a file listing:
+```bash
+texosquery-jre8 --debug --list ',' /home/nlct
+```
+returns
+```
+texosquery-jre8: Unable to list contents of: /home/nlct
+texosquery-jre8: Listing outside cwd path not permitted: /home/nlct
+```
+
 ## Source code
 
 The Java source is in the `.java` files and the manifest for each 

Modified: trunk/Master/texmf-dist/doc/support/texosquery/texosquery.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/scripts/texosquery/texosquery-jre5.jar
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/scripts/texosquery/texosquery-jre8.jar
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/scripts/texosquery/texosquery.jar
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/support/texosquery/java/TeXOSQuery.java
===================================================================
--- trunk/Master/texmf-dist/source/support/texosquery/java/TeXOSQuery.java	2017-03-29 22:31:45 UTC (rev 43640)
+++ trunk/Master/texmf-dist/source/support/texosquery/java/TeXOSQuery.java	2017-03-29 22:46:11 UTC (rev 43641)
@@ -53,7 +53,7 @@
  * There's a debug mode to print error messages to STDERR to
  * investigate the reason for failure.
  * @author Nicola Talbot
- * @version 1.2
+ * @version 1.2.1
  * @since 1.0
  */
 public class TeXOSQuery implements Serializable
@@ -4299,8 +4299,8 @@
     
    public static final int DEFAULT_COMPATIBLE=2;
 
-   private static final String VERSION_NUMBER = "1.2";
-   private static final String VERSION_DATE = "2017-03-23";
+   private static final String VERSION_NUMBER = "1.2.1";
+   private static final String VERSION_DATE = "2017-03-28";
    private static final char BACKSLASH = '\\';
    private static final long ZERO = 0L;
 

Modified: trunk/Master/texmf-dist/source/support/texosquery/texosquery.dtx
===================================================================
--- trunk/Master/texmf-dist/source/support/texosquery/texosquery.dtx	2017-03-29 22:31:45 UTC (rev 43640)
+++ trunk/Master/texmf-dist/source/support/texosquery/texosquery.dtx	2017-03-29 22:46:11 UTC (rev 43641)
@@ -53,7 +53,7 @@
 \renewcommand{\meta at font@select}{\rmfamily\itshape}
 \makeatother
 
-\CheckSum{3260}
+\CheckSum{3292}
 
 \RecordChanges
 \PageIndex
@@ -123,7 +123,7 @@
 %\author{Nicola L. C. Talbot\\
 %\href{http://www.dickimaw-books.com/}{\nolinkurl{dickimaw-books.com}}
 %\and Paulo Cereda}
-%\date{2017-03-23 (v1.2)}
+%\date{2017-03-28 (v1.2.1)}
 %\maketitle
 %
 %\begin{abstract}
@@ -157,7 +157,9 @@
 %\item \file{texosquery.jar}: requires at least Java~7, has medium locale
 %support, obeys \texttt{openin\_any} but has additional
 %restrictions imposed for security reasons (no listings outside the
-%current working directory path);
+%current working directory path); Note that Java 7 has reached its
+%\href{http://www.oracle.com/technetwork/java/eol-135779.html}{end
+%of life and is now deprecated}.
 %\item \file{texosquery-jre8.jar}: requires at least Java~8, has best locale
 %support, obeys \texttt{openin\_any} but has additional
 %restrictions imposed for security reasons (no listings outside the
@@ -2580,7 +2582,7 @@
 %    \end{macrocode}
 % Version info.
 %    \begin{macrocode}
-\expandafter\def\csname ver at texosquery.tex\endcsname{2017/03/23 v1.2 (NLCT)}
+\expandafter\def\csname ver at texosquery.tex\endcsname{2017/03/28 v1.2.1 (NLCT)}
 %    \end{macrocode}
 %
 %\begin{macro}{\@texosquery at warn}
@@ -6812,6 +6814,7 @@
      \let\@texosquery at currentsign\texosquerypatfmtplus
    \fi
    \@texosquery at digitindex=0\relax
+   \let\@texosquery at patfmt@dosep\empty
    \@texosquery at digitfoundfalse
    #1%
   \endgroup
@@ -6833,6 +6836,7 @@
 %    \end{macrocode}
 %\end{macro}
 %
+%Macros to shift the decimal place.
 %\begin{macro}{\@texosquery at pos@shift}
 %\changes{1.2}{2017-03-23}{new}
 %    \begin{macrocode}
@@ -6904,10 +6908,10 @@
   \or
     \let\@texosquery at int\@texosquery at frac
     \edef\@texosquery at frac{0}%
-%   \end{macrocode}
+%    \end{macrocode}
 %Anything larger will require scientific notation. Hopefully the
 %pattern supports this.
-%   \begin{macrocode}
+%    \begin{macrocode}
   \fi
 }
 %    \end{macrocode}
@@ -7031,6 +7035,7 @@
 \def\texosquerypatfmt at plusminus#1#2{%
  \edef\@texosquery at current{\expandafter\@texosquery at gobble\@texosquery at int}%
  \@texosquery at digitindex=0\relax
+ \let\@texosquery at patfmt@dosep\empty
  \@texosquery at digitfoundfalse
  \expandafter\ifx\@texosquery at sgn-%
   #2%
@@ -7079,6 +7084,7 @@
  \fi
  \edef\@texosquery at current{\expandafter\@texosquery at gobble\@texosquery at mantissa}%
  \@texosquery at digitindex=0\relax
+ \let\@texosquery at patfmt@dosep\empty
  \@texosquery at digitfoundfalse
  #2}}
 %    \end{macrocode}
@@ -7105,6 +7111,7 @@
 \def\texosquerypatfmt at dec#1#2{%
  \edef\@texosquery at current{\expandafter\@texosquery at gobble\@texosquery at int}%
  \@texosquery at digitindex=0\relax
+ \let\@texosquery at patfmt@dosep\empty
  \@texosquery at digitfoundfalse
  \let\@texosquery at zerodigit\@texosquery at zerodigit@leading
  #1%
@@ -7112,7 +7119,13 @@
  \else
   \@texosquery at invalidpattern{#1}%
  \fi
- \texosquerypatfmt at decsep
+%    \end{macrocode}
+%\changes{1.2.1}{2017-03-28}{moved decimal sep}
+%We can't display the decimal separator just yet as the pattern may
+%not show any digits for the fractional part. So only do the
+%separator just before the first digit.
+%    \begin{macrocode}
+ \let\@texosquery at patfmt@dosep\texosquerypatfmt at decsep
  \let\@texosquery at current\@texosquery at frac
  \@texosquery at digitindex=0\relax
  \@texosquery at digitfoundfalse
@@ -7256,6 +7269,9 @@
    \ifx\@texosquery at currentsign\texosquerypatfmtminus
     \texosquerypatfmtminus
     \let\@texosquery at currentsign\empty
+   \else
+    \@texosquery at patfmt@dosep
+    \let\@texosquery at patfmt@dosep\empty
    \fi
  \fi
  \@texosquery at digitfoundtrue
@@ -7324,6 +7340,9 @@
      \ifx\@texosquery at currentsign\texosquerypatfmtminus
       \texosquerypatfmtminus
       \let\@texosquery at currentsign\empty
+     \else
+       \@texosquery at patfmt@dosep
+       \let\@texosquery at patfmt@dosep\empty
      \fi
    \fi
    \@texosquery at digitfoundtrue
@@ -7369,6 +7388,9 @@
    \else
      \ifx\texosquerypatminus\texosquerypatfmtminus
       \texosquerypatfmtminus
+     \else
+       \@texosquery at patfmt@dosep
+       \let\@texosquery at patfmt@dosep\empty
      \fi
    \fi
    \@texosquery at digitfoundtrue
@@ -7414,6 +7436,9 @@
    \else
      \ifx\texosquerypatminus\texosquerypatfmtminus
       \texosquerypatfmtminus
+     \else
+       \@texosquery at patfmt@dosep
+       \let\@texosquery at patfmt@dosep\empty
      \fi
    \fi
    \@texosquery at digitfoundtrue
@@ -7540,7 +7565,7 @@
 %Identify package:
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{texosquery}[2017/03/23 v1.2 (NLCT)]
+\ProvidesPackage{texosquery}[2017/03/28 v1.2.1 (NLCT)]
 %    \end{macrocode}
 %Load \file{texosquery.tex}:
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/tex/latex/texosquery/texosquery.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/texosquery/texosquery.sty	2017-03-29 22:31:45 UTC (rev 43640)
+++ trunk/Master/texmf-dist/tex/latex/texosquery/texosquery.sty	2017-03-29 22:46:11 UTC (rev 43641)
@@ -43,7 +43,7 @@
 %%   Right brace   \}     Tilde         \~}
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{texosquery}[2017/03/23 v1.2 (NLCT)]
+\ProvidesPackage{texosquery}[2017/03/28 v1.2.1 (NLCT)]
 \input{texosquery}
 \endinput
 %%

Modified: trunk/Master/texmf-dist/tex/latex/texosquery/texosquery.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/texosquery/texosquery.tex	2017-03-29 22:31:45 UTC (rev 43640)
+++ trunk/Master/texmf-dist/tex/latex/texosquery/texosquery.tex	2017-03-29 22:46:11 UTC (rev 43641)
@@ -54,7 +54,7 @@
   \@texosquery at restore@at
   \expandafter\endinput
 \fi
-\expandafter\def\csname ver at texosquery.tex\endcsname{2017/03/23 v1.2 (NLCT)}
+\expandafter\def\csname ver at texosquery.tex\endcsname{2017/03/28 v1.2.1 (NLCT)}
 \ifx\@tracklang at pkgwarn\undefined
   \ifx\PackageWarning\undefined
     \def\@texosquery at warn#1{%
@@ -1397,6 +1397,7 @@
      \let\@texosquery at currentsign\texosquerypatfmtplus
    \fi
    \@texosquery at digitindex=0\relax
+   \let\@texosquery at patfmt@dosep\empty
    \@texosquery at digitfoundfalse
    #1%
   \endgroup
@@ -1561,6 +1562,7 @@
 \def\texosquerypatfmt at plusminus#1#2{%
  \edef\@texosquery at current{\expandafter\@texosquery at gobble\@texosquery at int}%
  \@texosquery at digitindex=0\relax
+ \let\@texosquery at patfmt@dosep\empty
  \@texosquery at digitfoundfalse
  \expandafter\ifx\@texosquery at sgn-%
   #2%
@@ -1592,6 +1594,7 @@
  \fi
  \edef\@texosquery at current{\expandafter\@texosquery at gobble\@texosquery at mantissa}%
  \@texosquery at digitindex=0\relax
+ \let\@texosquery at patfmt@dosep\empty
  \@texosquery at digitfoundfalse
  #2}}
 \def\texosquerypatfmtdecsep{.}
@@ -1599,6 +1602,7 @@
 \def\texosquerypatfmt at dec#1#2{%
  \edef\@texosquery at current{\expandafter\@texosquery at gobble\@texosquery at int}%
  \@texosquery at digitindex=0\relax
+ \let\@texosquery at patfmt@dosep\empty
  \@texosquery at digitfoundfalse
  \let\@texosquery at zerodigit\@texosquery at zerodigit@leading
  #1%
@@ -1606,7 +1610,7 @@
  \else
   \@texosquery at invalidpattern{#1}%
  \fi
- \texosquerypatfmt at decsep
+ \let\@texosquery at patfmt@dosep\texosquerypatfmt at decsep
  \let\@texosquery at current\@texosquery at frac
  \@texosquery at digitindex=0\relax
  \@texosquery at digitfoundfalse
@@ -1688,6 +1692,9 @@
    \ifx\@texosquery at currentsign\texosquerypatfmtminus
     \texosquerypatfmtminus
     \let\@texosquery at currentsign\empty
+   \else
+    \@texosquery at patfmt@dosep
+    \let\@texosquery at patfmt@dosep\empty
    \fi
  \fi
  \@texosquery at digitfoundtrue
@@ -1751,6 +1758,9 @@
      \ifx\@texosquery at currentsign\texosquerypatfmtminus
       \texosquerypatfmtminus
       \let\@texosquery at currentsign\empty
+     \else
+       \@texosquery at patfmt@dosep
+       \let\@texosquery at patfmt@dosep\empty
      \fi
    \fi
    \@texosquery at digitfoundtrue
@@ -1790,6 +1800,9 @@
    \else
      \ifx\texosquerypatminus\texosquerypatfmtminus
       \texosquerypatfmtminus
+     \else
+       \@texosquery at patfmt@dosep
+       \let\@texosquery at patfmt@dosep\empty
      \fi
    \fi
    \@texosquery at digitfoundtrue
@@ -1829,6 +1842,9 @@
    \else
      \ifx\texosquerypatminus\texosquerypatfmtminus
       \texosquerypatfmtminus
+     \else
+       \@texosquery at patfmt@dosep
+       \let\@texosquery at patfmt@dosep\empty
      \fi
    \fi
    \@texosquery at digitfoundtrue

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2017-03-29 22:31:45 UTC (rev 43640)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2017-03-29 22:46:11 UTC (rev 43641)
@@ -3614,8 +3614,10 @@
           if $linkname =~ /pdfcrop|epstopdf/; # rpdfcrop ->pdfcrop, ...
 
       } else {
-        # Windows.  If a shell script, skip.  Else copy the wrapper.
-        next if $s =~ /\.sh$/ && $s !~ /-sys\.sh$/;
+        # Windows.  If a shell script, usually skip.  Else copy the wrapper.
+        if ($s !~ /arara|texosquery/) { # java programs, want wrapper.
+          next if $s =~ /\.sh$/ && $s !~ /-sys\.sh$/;
+        }
         #
         # Other shell scripts whose names don't end in .sh.  We need to
         # change this to match texmf_dist_shell_scripts in



More information about the tex-live-commits mailing list