mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
lhadpdf.pdf_sets: update maintainer.sh
This commit is contained in:
parent
36991a8f88
commit
92ac87f05a
1 changed files with 5 additions and 3 deletions
|
@ -1,10 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -xe
|
||||
|
||||
BASE_URL="https://lhapdf.hepforge.org/downloads?f=pdfsets/6.2/"
|
||||
: ${SED:="$(nix-build '<nixpkgs>' -A gnused --no-out-link)/bin/sed"}
|
||||
|
||||
for pdf_set in `curl $BASE_URL 2>/dev/null | gsed -e "s/.*<a href=\"[^\"]*\/\([^\"/]*.tar.gz\)\".*/\1/;tx;d;:x" | gsed -e "s/%2B/+/g" | sort -u`; do
|
||||
BASE_URL="https://lhapdfsets.web.cern.ch/lhapdfsets/current/"
|
||||
|
||||
for pdf_set in `curl -L $BASE_URL 2>/dev/null | "$SED" -e "s/.*<a href=\"\([^\"/]*.tar.gz\)\".*/\1/;tx;d;:x" | sort -u`; do
|
||||
echo -n " \"${pdf_set%.tar.gz}\" = \""
|
||||
nix-prefetch-url "${BASE_URL}${pdf_set}" 2>/dev/null | tr -d '\n'
|
||||
echo "\";"
|
||||
|
|
Loading…
Reference in a new issue