Skip to content

Commit

Permalink
texlive.tlpdb.nix: do not escape valid names
Browse files Browse the repository at this point in the history
  • Loading branch information
xworld21 committed Jun 17, 2023
1 parent 5a44eb9 commit 1184667
Show file tree
Hide file tree
Showing 2 changed files with 4,297 additions and 4,296 deletions.
5 changes: 3 additions & 2 deletions pkgs/tools/typesetting/tex/texlive/tl2nix.sed
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ $a}
# form an attrmap per package
# ignore packages whose name contains "." (such as binaries) except for texlive.infra
/^name ([^.]+|texlive\.infra)$/,/^$/{
# quote package names, as some start with a number :-/
s/^name (.*)$/"\1" = {/p
# quote invalid names
s/^name ([0-9].*|texlive\.infra)$/"\1" = {/p
s/^name (.*)$/\1 = {/p

# extract revision
s/^revision ([0-9]*)$/ revision = \1;/p
Expand Down
Loading

0 comments on commit 1184667

Please sign in to comment.