diff options
Diffstat (limited to 'pkgs/tools/typesetting/tex/texlive/fixHashes.awk')
-rwxr-xr-x | pkgs/tools/typesetting/tex/texlive/fixHashes.awk | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive/fixHashes.awk b/pkgs/tools/typesetting/tex/texlive/fixHashes.awk deleted file mode 100755 index d9f1acd08eab2..0000000000000 --- a/pkgs/tools/typesetting/tex/texlive/fixHashes.awk +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env nix-shell -#! nix-shell -i "gawk -f" -p gawk - -BEGIN { - print "{" -} - -/-texlive-/ && !/\.bin/ { - if (match($0, /-texlive-([^\/]*)/, m) == 0) { - print "No match for \""$0"\"" > "/dev/stderr" - exit 1 - } - cmd="nix-hash --type sha256 --base32 "$0 - if (( cmd | getline hash ) <= 0) { - print "Error executing nix-hash" > "/dev/stderr" - exit 1 - } - close(cmd) - printf("\"%s\"=\"%s\";\n", m[1], hash) -} - -END { - print "}" -} |