from-quicklisp: move urls-from-page.sh to its directory

This commit is contained in:
Felix Buehler 2022-01-30 23:12:32 +01:00
parent 325d6de924
commit 70ee115571
2 changed files with 4 additions and 4 deletions

View file

@ -51,7 +51,7 @@ url="${ql_src##* }"
[ "$ql_src_type" = github ] && {
ql_src_type=git
url="https://github.com/$url";
version="$("$(dirname "$0")/../../../build-support/upstream-updater/urls-from-page.sh" "$url/releases/" | grep /tag/ | head -n 1 | xargs -l1 basename)"
version="$("$(dirname "$0")/urls-from-page.sh" "$url/releases/" | grep /tag/ | head -n 1 | xargs -l1 basename)"
rev="refs/tags/$version";
}
@ -62,7 +62,7 @@ url="${ql_src##* }"
) && {
url="${url/git:/https:}"
url="${url%.git}"
[ -z "$rev" ] && rev=$("$(dirname "$0")/../../../build-support/upstream-updater/urls-from-page.sh" "$url/commits" | grep /commit/ | head -n 1 | xargs basename)
[ -z "$rev" ] && rev=$("$(dirname "$0")/urls-from-page.sh" "$url/commits" | grep /commit/ | head -n 1 | xargs basename)
hash=$("$(dirname "$0")/../../../build-support/fetchgit/nix-prefetch-git" "$url" "$rev" | grep . | tail -n 1)
[ -z "$version" ] && version="git-$(date +%Y%m%d)";
}
@ -131,7 +131,7 @@ url="${ql_src##* }"
[ "$ql_src_type" = froydware-http ] && {
dirurl="http://method-combination.net/lisp/files/";
url="$("$(dirname "$0")/../../../build-support/upstream-updater/urls-from-page.sh" "$dirurl" |
url="$("$(dirname "$0")/urls-from-page.sh" "$dirurl" |
grep "/${url}_" | grep -v "[.]asc\$" | tail -n 1)"
ql_src_type=http
}

View file

@ -6,7 +6,7 @@ path="${url#$protocol://}"
server="${path%%/*}"
basepath="${path%/*}"
relpath="${path#$server}"
echo "URL: $url" >&2
curl -A 'text/html; text/xhtml; text/xml; */*' -L -k "$url" | sed -re 's/^/-/;s/[^a-zA-Z][hH][rR][eE][fF]=("([^"]*)"|'\''([^'\'']*)'\''|([^"'\'' <>&]+)[ <>&])/\n+\2\3\4\n-/g' | \