8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
11 lines
362 B
Bash
Executable file
11 lines
362 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
BASE_URL="https://lhapdf.hepforge.org/downloads?f=pdfsets/6.2/"
|
|
|
|
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
|
|
echo -n " \"${pdf_set%.tar.gz}\" = \""
|
|
nix-prefetch-url "${BASE_URL}${pdf_set}" 2>/dev/null | tr -d '\n'
|
|
echo "\";"
|
|
done
|