diff options
author | Karl Berry <karl@freefriends.org> | 2019-10-02 21:17:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-10-02 21:17:13 +0000 |
commit | 232a9e8c131c4a36b549eace3512642e409a233a (patch) | |
tree | 5ec51b0009f7e4d9f76d3f811cf6392d476a1344 /Master/texmf-dist/tex | |
parent | 5924d3d19a3cfd0f81b96b17199dff811f75027e (diff) |
download (2oct19)
git-svn-id: svn://tug.org/texlive/trunk@52257 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/download/download.sty | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/download/download.sty b/Master/texmf-dist/tex/latex/download/download.sty index c6f28829663..284c22553cb 100644 --- a/Master/texmf-dist/tex/latex/download/download.sty +++ b/Master/texmf-dist/tex/latex/download/download.sty @@ -1,7 +1,7 @@ %% This is file `download.sty', generated from `download.tex' (key `package'). %% download - download files with LaTeX %% -%% Copyright (C) 2012-2013 by Simon Sigurdhsson <sigurdhsson@gmail.com> +%% Copyright (C) 2012-2019 by Simon Sigurdhsson <sigurdhsson@gmail.com> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -20,7 +20,7 @@ \RequirePackage{expl3,l3keys2e,pdftexcmds,xparse} \ProvidesExplPackage{download} - {2013/04/08}{1.1}{download files with LaTeX} + {2019/10/01}{1.2}{download files with LaTeX} \msg_new:nnnn{download}{no-write18}{Could~not~use~\string\write18!} {Please~run~`latex`~with~the~`--shell-escape`~flag.} \msg_new:nnnn{download}{no-engine}{Could~not~find~any~engine!} @@ -31,9 +31,9 @@ \msg_new:nnn{download}{use-wget}{Using~wget.} \msg_new:nnn{download}{use-ariaII}{Using~aria2.} \msg_new:nnn{download}{use-axel}{Using~axel.} -\prg_new_conditional:Nnn\__download_if_shellescape:{F}{ +\prg_new_protected_conditional:Nnn\__download_if_shellescape:{F}{ \if_cs_exist:N\pdf@shellescape - \if_int_compare:w\pdf@shellescape=\c_one + \if_int_compare:w\pdf@shellescape=\c_one_int \prg_return_true: \else: \prg_return_false: @@ -42,7 +42,7 @@ \prg_return_true: \fi: } -\cs_new:Npn\__download_rm:n#1{ +\cs_new_protected:Npn\__download_rm:n#1{ \immediate\write18{rm~#1} } \prg_new_conditional:Npnn\__download_if_executable_test:n#1{TF,T,F,p}{ @@ -54,35 +54,35 @@ \prg_return_false: } } -\cs_new:Npn\__download_curl_do:nn#1#2{ +\cs_new_protected:Npn\__download_curl_do:nn#1#2{ \IfNoValueTF{#1}{ \immediate\write18{curl~-L~-s~#2} }{ \immediate\write18{curl~-L~-s~-o~#1~#2} } } -\cs_new:Npn\__download_wget_do:nn#1#2{ +\cs_new_protected:Npn\__download_wget_do:nn#1#2{ \IfNoValueTF{#1}{ \immediate\write18{wget~-q~-nc~#2} }{ \immediate\write18{wget~-q~-nc~-O~#1~#2} } } -\cs_new:Npn\__download_ariaII_do:nn#1#2{ +\cs_new_protected:Npn\__download_ariaII_do:nn#1#2{ \IfNoValueTF{#1}{ \immediate\write18{aria2c~-q~--auto-file-renaming=false~#2} }{ \immediate\write18{aria2c~-q~--auto-file-renaming=false~-o~#1~#2} } } -\cs_new:Npn\__download_axel_do:nn#1#2{ +\cs_new_protected:Npn\__download_axel_do:nn#1#2{ \IfNoValueTF{#1}{ \immediate\write18{axel~-q~#2} }{ \immediate\write18{axel~-q~-o~#1~#2} } } -\prg_new_conditional:Nnn\__download_if_auto_test:{F,TF}{ +\prg_new_protected_conditional:Nnn\__download_if_auto_test:{F,TF}{ \__download_if_executable_test:nTF{wget}{ \prg_return_true: }{ @@ -101,7 +101,7 @@ } } } -\cs_new:Npn\__download_auto_do:nn#1#2{ +\cs_new_protected:Npn\__download_auto_do:nn#1#2{ \__download_if_executable_test:nTF{wget}{ \msg_info:nn{download}{use-wget} \__download_wget_do:nn{#1}{#2} |