~sourcemage/sorcery

a1c700b0686c8bf152679944ec13428ca4c7bec1 — Ismael Luceno 2 months ago 0330cea
sightsee: Provide a default regex
1 files changed, 5 insertions(+), 3 deletions(-)

M usr/lib/sorcery/cmd/sightsee
M usr/lib/sorcery/cmd/sightsee => usr/lib/sorcery/cmd/sightsee +5 -3
@@ 73,9 73,11 @@ find "${paths[@]}" -name DETAILS -exec awk '
	/^# *Watch:/ {
		sub(/^[^:]+: */, "")
		watch_url = $1
		sub(/^[^ ]+ +/, "")
		watch_regex = $0
		# TODO check syntax
		sub(/^[^ ]+ */, "")
		watch_regex = $0 ? $0 : spell \
			"[-_](R?[-_.+~0-9]+(([a-z]|rc|alpha|beta)[0-9]*)?)" \
			"(-src|-source)?" \
			"[.](tar|zip|t[bgx]z|7z|sha?r|cpio|rpm|deb|[ot]tf)"
		if (version != "") nextfile
	}
	function print_spell() {