diff options
author | Karl Berry <karl@freefriends.org> | 2024-10-31 20:34:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-10-31 20:34:15 +0000 |
commit | 1cdef87edb281bc04e8767e0657299011e3272eb (patch) | |
tree | c6db9e5df869db86923c7665c49031755e3f1327 | |
parent | a4915c2bd0ce3b4301f222854a5b5d81beba9b53 (diff) |
eolang (31oct24)
git-svn-id: svn://tug.org/texlive/trunk@72724 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/eolang/eolang.pl | 48 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/eolang/DEPENDS.txt | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/eolang/README.md | 11 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/eolang/eolang.bib | 22 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/eolang/eolang.pdf | bin | 1940560 -> 1863816 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/man/man1/eolang.1 | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/man/man1/eolang.man1.pdf | bin | 13127 -> 14159 bytes | |||
-rwxr-xr-x | Master/texmf-dist/scripts/eolang/eolang.pl | 48 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/eolang/eolang.dtx | 6 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/eolang/eolang.sty | 6 |
10 files changed, 51 insertions, 95 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/eolang/eolang.pl b/Build/source/texk/texlive/linked_scripts/eolang/eolang.pl index 48ba53dc5b8..6018cd52515 100755 --- a/Build/source/texk/texlive/linked_scripts/eolang/eolang.pl +++ b/Build/source/texk/texlive/linked_scripts/eolang/eolang.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl # (The MIT License) # -# Copyright (c) 2022-2024 Yegor Bugayenko +# Copyright (c) 2021-2024 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal @@ -21,58 +21,22 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# 2024-02-14 0.18.1 +# 0000-00-00 0.18.2 package eolang; use warnings; use strict; +use lib('.'); +use tools; use File::Basename; # Hash of incoming command line arguments. my %args = map { $_ => 1 } @ARGV; -# Read file content. -sub readfile { - my ($path) = @_; - open(my $h, '<', $path) or die('Cannot open file: ' . $path); - my $content; { local $/; $content = <$h>; } - return $content; -} - -# Save content to file. -sub savefile { - my ($path, $content) = @_; - open(my $f, '>', $path) or error('Cannot open file for writing: ' . $path); - print $f $content; - close($f); - my $size = -s $path; - info("File saved to '$path' ($size bytes)"); -} - -# Print INFO message to the console. -sub info { - my ($txt) = @_; - print $txt . "\n"; -} - -# Print DEBUG message to the console. -sub debug { - my ($txt) = @_; - if (exists $args{'--verbose'}) { - print $txt . "\n"; - } -} - -# Print ERROR message to the console. -sub error { - my ($txt) = @_; - print STDERR $txt . "\n"; -} - if (@ARGV+0 eq 0 or exists $args{'--help'} or exists $args{'-?'}) { info("This script helps embedding \\phiquation and \\phiq into .tex document\n\n" . "Usage:\n" . - " eolang [<options>] <.tex file path>\n\n" . + " eolang [<options>] <.tex input file path> <.tex output file path>\n\n" . "Options:\n" . " -v, --version Print the current version of the tool and exit\n" . " -?, --help Print this help screen\n" . @@ -80,7 +44,7 @@ if (@ARGV+0 eq 0 or exists $args{'--help'} or exists $args{'-?'}) { " --tmpdir=path Temp directory with .tex files ('_eolang' by default)\n\n" . "If any issues, report to GitHub: https://github.com/yegor256/bibcop"); } elsif (exists $args{'--version'} or exists $args{'-v'}) { - info('0.18.1 2024-02-14'); + info('0.18.2 0000-00-00'); } else { my ($src, $target) = grep { not($_ =~ /^-.*$/) } @ARGV; if (not $src) { diff --git a/Master/texmf-dist/doc/latex/eolang/DEPENDS.txt b/Master/texmf-dist/doc/latex/eolang/DEPENDS.txt index d4273d33234..d10a65d74f2 100644 --- a/Master/texmf-dist/doc/latex/eolang/DEPENDS.txt +++ b/Master/texmf-dist/doc/latex/eolang/DEPENDS.txt @@ -1,6 +1,7 @@ hard adjustbox hard amsfonts hard amsmath +hard everyshi hard fancyvrb hard hyperref hard iexec diff --git a/Master/texmf-dist/doc/latex/eolang/README.md b/Master/texmf-dist/doc/latex/eolang/README.md index 2214b74e382..1d71ee78179 100644 --- a/Master/texmf-dist/doc/latex/eolang/README.md +++ b/Master/texmf-dist/doc/latex/eolang/README.md @@ -1,3 +1,5 @@ +# LaTeX package for 𝜑-calculus + [![l3build](https://github.com/objectionary/eolang.sty/actions/workflows/l3build.yml/badge.svg)](https://github.com/objectionary/eolang.sty/actions/workflows/l3build.yml) [![CTAN](https://img.shields.io/ctan/v/eolang)](https://ctan.org/pkg/eolang) [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/objectionary/eolang.sty/blob/master/LICENSE.txt) @@ -6,7 +8,7 @@ This LaTeX package helps you write 𝜑-calculus formulas and draw [SODG](https://github.com/objectionary/sodg) graphs for [EO](https://www.eolang.org) programming language. -First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages) +First, [install it][install] from [CTAN](https://ctan.org/pkg/eolang) and then use in the preamble: @@ -22,10 +24,13 @@ x -> [ \end{document} ``` -Otherwise, you can download [`eolang.sty`](https://objectionary.github.io/eolang.sty/eolang.sty) and add to your project. +Otherwise, you can download [`eolang.sty`][sty] and add to your project. -If you want to contribute yourself, make a fork, then create a branch, +If you want to contribute yourself, make a fork, then create a branch, then run `l3build ctan` in the root directory. It should compile everything without errors. If not, submit an issue and wait. Otherwise, make your changes and then run `l3build ctan` again. If the build is still clean, submit a pull request. + +[install]: https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages +[sty]: https://objectionary.github.io/eolang.sty/eolang.sty diff --git a/Master/texmf-dist/doc/latex/eolang/eolang.bib b/Master/texmf-dist/doc/latex/eolang/eolang.bib index 34ca47a8f28..71e181fa5c8 100644 --- a/Master/texmf-dist/doc/latex/eolang/eolang.bib +++ b/Master/texmf-dist/doc/latex/eolang/eolang.bib @@ -1,3 +1,25 @@ +% (The MIT License) +% +% Copyright (c) 2021-2024 Yegor Bugayenko +% +% Permission is hereby granted, free of charge, to any person obtaining a copy +% of this software and associated documentation files (the 'Software'), to deal +% in the Software without restriction, including without limitation the rights +% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +% copies of the Software, and to permit persons to whom the Software is +% furnished to do so, subject to the following conditions: +% +% The above copyright notice and this permission notice shall be included in all +% copies or substantial portions of the Software. +% +% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +% SOFTWARE. + @misc{bugayenko2021eolang, title={EOLANG and $\varphi$-calculus}, author={Yegor Bugayenko}, diff --git a/Master/texmf-dist/doc/latex/eolang/eolang.pdf b/Master/texmf-dist/doc/latex/eolang/eolang.pdf Binary files differindex 2bf8e39de4b..47d3f5bcda6 100644 --- a/Master/texmf-dist/doc/latex/eolang/eolang.pdf +++ b/Master/texmf-dist/doc/latex/eolang/eolang.pdf diff --git a/Master/texmf-dist/doc/man/man1/eolang.1 b/Master/texmf-dist/doc/man/man1/eolang.1 index 8ab1954d875..d14e5fb8c2a 100644 --- a/Master/texmf-dist/doc/man/man1/eolang.1 +++ b/Master/texmf-dist/doc/man/man1/eolang.1 @@ -1,4 +1,4 @@ -.TH eolang 1 "2024-02-14" +.TH eolang 1 "0000-00-00" .SH NAME eolang \- Automated Editor of TeX Files that Use "eolang" Package .SH SYNOPSIS @@ -21,4 +21,4 @@ Yegor Bugayenko (yegor256@gmail.com) Please log issues on the GitHub homepage: https://github.com/objectionary/eolang.sty/issues. .SH SEE ALSO -See eolang.pdf for more details. +See eolang.pdf for more details.
\ No newline at end of file diff --git a/Master/texmf-dist/doc/man/man1/eolang.man1.pdf b/Master/texmf-dist/doc/man/man1/eolang.man1.pdf Binary files differindex 092c3afd9f1..48d26af0e0b 100644 --- a/Master/texmf-dist/doc/man/man1/eolang.man1.pdf +++ b/Master/texmf-dist/doc/man/man1/eolang.man1.pdf diff --git a/Master/texmf-dist/scripts/eolang/eolang.pl b/Master/texmf-dist/scripts/eolang/eolang.pl index 48ba53dc5b8..6018cd52515 100755 --- a/Master/texmf-dist/scripts/eolang/eolang.pl +++ b/Master/texmf-dist/scripts/eolang/eolang.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl # (The MIT License) # -# Copyright (c) 2022-2024 Yegor Bugayenko +# Copyright (c) 2021-2024 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal @@ -21,58 +21,22 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# 2024-02-14 0.18.1 +# 0000-00-00 0.18.2 package eolang; use warnings; use strict; +use lib('.'); +use tools; use File::Basename; # Hash of incoming command line arguments. my %args = map { $_ => 1 } @ARGV; -# Read file content. -sub readfile { - my ($path) = @_; - open(my $h, '<', $path) or die('Cannot open file: ' . $path); - my $content; { local $/; $content = <$h>; } - return $content; -} - -# Save content to file. -sub savefile { - my ($path, $content) = @_; - open(my $f, '>', $path) or error('Cannot open file for writing: ' . $path); - print $f $content; - close($f); - my $size = -s $path; - info("File saved to '$path' ($size bytes)"); -} - -# Print INFO message to the console. -sub info { - my ($txt) = @_; - print $txt . "\n"; -} - -# Print DEBUG message to the console. -sub debug { - my ($txt) = @_; - if (exists $args{'--verbose'}) { - print $txt . "\n"; - } -} - -# Print ERROR message to the console. -sub error { - my ($txt) = @_; - print STDERR $txt . "\n"; -} - if (@ARGV+0 eq 0 or exists $args{'--help'} or exists $args{'-?'}) { info("This script helps embedding \\phiquation and \\phiq into .tex document\n\n" . "Usage:\n" . - " eolang [<options>] <.tex file path>\n\n" . + " eolang [<options>] <.tex input file path> <.tex output file path>\n\n" . "Options:\n" . " -v, --version Print the current version of the tool and exit\n" . " -?, --help Print this help screen\n" . @@ -80,7 +44,7 @@ if (@ARGV+0 eq 0 or exists $args{'--help'} or exists $args{'-?'}) { " --tmpdir=path Temp directory with .tex files ('_eolang' by default)\n\n" . "If any issues, report to GitHub: https://github.com/yegor256/bibcop"); } elsif (exists $args{'--version'} or exists $args{'-v'}) { - info('0.18.1 2024-02-14'); + info('0.18.2 0000-00-00'); } else { my ($src, $target) = grep { not($_ =~ /^-.*$/) } @ARGV; if (not $src) { diff --git a/Master/texmf-dist/source/latex/eolang/eolang.dtx b/Master/texmf-dist/source/latex/eolang/eolang.dtx index 97d558ccaaa..23df2523239 100644 --- a/Master/texmf-dist/source/latex/eolang/eolang.dtx +++ b/Master/texmf-dist/source/latex/eolang/eolang.dtx @@ -50,7 +50,7 @@ %<package>\NeedsTeXFormat{LaTeX2e} %<package>\ProvidesPackage{eolang} %<*package> -[2024-02-14 0.18.1 Formulas and Graphs for EO Programming Language] +[2024/10/31 0.18.2 Formulas and Graphs for EO Programming Language] %</package> %<*driver> \documentclass{ltxdoc} @@ -877,7 +877,7 @@ $macro = $ARGV[0]; open(my $fh, '<', $ARGV[1]); my $tex; { local $/; $tex = <$fh>; } -print "% This file is auto-generated by 0.18.1\n"; +print "% This file is auto-generated by eolang.sty 0.18.2\n"; print '% There are ', length($tex), ' chars in the input: ', $ARGV[1], "\n"; print '% ---', "\n"; @@ -1149,7 +1149,7 @@ print '\endinput'; {\eolang@tmpdir/\jobname/\hash-phiq-post.tex} {% \iexec[log,trace,quiet,stdout=\eolang@tmpdir/\jobname/phiq.tex]{ - /bin/echo '\clean'}% + printf '\%s' '\clean'}% \iexec[quiet,null]{cp "\eolang@tmpdir/\jobname/phiq.tex" "\eolang@tmpdir/\jobname/\hash-phiq.tex"}% \iexec[trace,stdout=\eolang@tmpdir/\jobname/\hash-phiq-post.tex]{ diff --git a/Master/texmf-dist/tex/latex/eolang/eolang.sty b/Master/texmf-dist/tex/latex/eolang/eolang.sty index 81f70b3cf38..e74cf2f4a16 100644 --- a/Master/texmf-dist/tex/latex/eolang/eolang.sty +++ b/Master/texmf-dist/tex/latex/eolang/eolang.sty @@ -31,7 +31,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{eolang} -[2024-02-14 0.18.1 Formulas and Graphs for EO Programming Language] +[2024/10/31 0.18.2 Formulas and Graphs for EO Programming Language] @@ -148,7 +148,7 @@ $macro = $ARGV[0]; open(my $fh, '<', $ARGV[1]); my $tex; { local $/; $tex = <$fh>; } -print "% This file is auto-generated by 0.18.1\n"; +print "% This file is auto-generated by eolang.sty 0.18.2\n"; print '% There are ', length($tex), ' chars in the input: ', $ARGV[1], "\n"; print '% ---', "\n"; @@ -392,7 +392,7 @@ print '\endinput'; {\eolang@tmpdir/\jobname/\hash-phiq-post.tex} {% \iexec[log,trace,quiet,stdout=\eolang@tmpdir/\jobname/phiq.tex]{ - /bin/echo '\clean'}% + printf '\%s' '\clean'}% \iexec[quiet,null]{cp "\eolang@tmpdir/\jobname/phiq.tex" "\eolang@tmpdir/\jobname/\hash-phiq.tex"}% \iexec[trace,stdout=\eolang@tmpdir/\jobname/\hash-phiq-post.tex]{ |