tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Filter out broken-completely links
Michael Raskin
11 years ago
c38a1131
5ef6745b
+1
-1
1 changed file
expand all
collapse all
unified
split
pkgs
build-support
upstream-updater
urls-from-page.sh
+1
-1
pkgs/build-support/upstream-updater/urls-from-page.sh
···
9
9
10
10
echo "URL: $url" >&2
11
11
12
12
-
curl -A 'text/html; text/xhtml; text/xml; */*' -L -k "$url" | sed -re 's/^/-/;s/[hH][rR][eE][fF]=("([^"]*)"|'\''([^'\'']*)'\''|([^"'\'' <>&]+)[ <>&])/\n+\2\3\4\n-/g' | \
12
12
+
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' | \
13
13
sed -e '/^-/d; s/^[+]//; /^#/d;'"s/^\\//$protocol:\\/\\/$server\\//g" | \
14
14
sed -re 's`^[^:]*$`'"$protocol://$basepath/&\`"