Fixup URL for upstream files
Permanently moved error codeā¦
Iustin Pop
5 years ago
7 | 7 | |
8 | 8 | get-orig-source: |
9 | 9 | set -ex; tempdir=$$(mktemp -d); \ |
10 | udate=$$(curl -s -I https://foldoc.org/Dictionary.txt| \ | |
10 | udate=$$(curl -s -I https://foldoc.org/Dictionary| \ | |
11 | 11 | sed -n 's/^[Ll]ast-[Mm]odified: //p'); \ |
12 | 12 | uver=$$(date -d "$$udate" +"%Y%m%d"); \ |
13 | 13 | fdir="$$tempdir/dict-foldoc-$$uver"; \ |
14 | 14 | mkdir "$$fdir"; \ |
15 | curl -s -f -o $$fdir/Dictionary https://foldoc.org/Dictionary.txt; \ | |
15 | curl -s -f -o $$fdir/Dictionary https://foldoc.org/Dictionary; \ | |
16 | 16 | tar czf dict-foldoc-$$uver.tar.gz -C $$tempdir .; \ |
17 | 17 | rm -rf $$tempdir |
18 | 18 |