sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by Ismael Luceno (2002433c05200ffc23dc1bcd48ffea425bf91a57)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master sorcery by Ismael Luceno (2002433c05200ffc23dc1bcd48ffea425bf91a57)
- Date: Sun, 2 Apr 2023 20:27:27 +0000
GIT changes to master sorcery by Ismael Luceno <ismael AT sourcemage.org>:
usr/lib/sorcery/cmd/sightsee | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
New commits:
commit 2002433c05200ffc23dc1bcd48ffea425bf91a57
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
sightsee: Take spell name from SPELL variable
diff --git a/usr/lib/sorcery/cmd/sightsee b/usr/lib/sorcery/cmd/sightsee
index c65e39b..f5f482d 100755
--- a/usr/lib/sorcery/cmd/sightsee
+++ b/usr/lib/sorcery/cmd/sightsee
@@ -68,9 +68,11 @@ find "${paths[@]}" -name DETAILS -exec awk
-vdebug="$debug" '
END { print_spell() }
FNR==1 {
if (spell != "") print_spell()
- spell = FILENAME
- sub(/\/DETAILS$/, "", spell)
- sub(/.*\//, "", spell)
+ }
+ /^ *SPELL=/ {
+ spell = $0
+ sub(/^[^=]+=/, "", spell)
+ next
}
/^ *VERSION=/ {
version = $0
@@ -83,12 +85,7 @@ find "${paths[@]}" -name DETAILS -exec awk
-vdebug="$debug" '
sub(/^[^:]+: */, "")
watch_url = $1
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 (debug)
- printf "D: regex `%s`\n", watch_regex >"/dev/stderr"
+ watch_regex = $0
if (version != "") nextfile
}
function print_spell() {
@@ -97,6 +94,13 @@ find "${paths[@]}" -name DETAILS -exec awk
-vdebug="$debug" '
"Upstream releases page not specified" \
>"/dev/stderr"
} else {
+ if (!watch_regex)
+ watch_regex = 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 (debug)
+ printf "D: regex `%s`\n", watch_regex
>"/dev/stderr"
print spell, version, watch_url, watch_regex
}
version = watch_url = spell = ""
- [SM-Commit] GIT changes to master sorcery by Ismael Luceno (2002433c05200ffc23dc1bcd48ffea425bf91a57), Ismael Luceno, 04/02/2023
Archive powered by MHonArc 2.6.24.