Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master sorcery by Ismael Luceno (0fa97cfb367df44e145122411898e4876fb605f1)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • 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 (0fa97cfb367df44e145122411898e4876fb605f1)
  • Date: Sun, 26 Mar 2023 01:36:43 +0000

GIT changes to master sorcery by Ismael Luceno <ismael AT sourcemage.org>:

usr/lib/sorcery/cmd/sightsee | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

New commits:
commit 0fa97cfb367df44e145122411898e4876fb605f1
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

sightsee: Allow for spaces in the regex

commit bad15943017418d8e61772bc34269eae61ec4e04
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

sightsee: Make test mode show all unique matches

diff --git a/usr/lib/sorcery/cmd/sightsee b/usr/lib/sorcery/cmd/sightsee
index 81e71f8..3bc3e83 100755
--- a/usr/lib/sorcery/cmd/sightsee
+++ b/usr/lib/sorcery/cmd/sightsee
@@ -8,7 +8,7 @@ upstream_rel_get() {
$0 = substr($0, RSTART, RLENGTH)
print V[1 in V]
}
- ' | sort -rV | sed q
+ ' | sort -urV
}

# Process options
@@ -69,9 +69,11 @@ find "${paths[@]}" -name DETAILS -exec awk '
sub(/.*=/, "", version)
if (watch_url != "") nextfile
}
- /^#Watch:/ {
- watch_url = $2
- watch_regex = $3
+ /^# *Watch:/ {
+ sub(/^[^:]+: */, "")
+ watch_url = $1
+ sub(/^[^ ]+ +/, "")
+ watch_regex = $0
# TODO check syntax
if (version != "") nextfile
}
@@ -86,7 +88,7 @@ find "${paths[@]}" -name DETAILS -exec awk '
}
' {} + |
while read spell cur_rel url regex; do
- latest_rel=$(upstream_rel_get "$url" "$regex") || continue
+ latest_rel=$(upstream_rel_get "$url" "$regex" | sed q) || continue
if [ "x$latest_rel" != "x$cur_rel" ]; then
echo "$spell $latest_rel"
elif [ -n "$verbose" ]; then



  • [SM-Commit] GIT changes to master sorcery by Ismael Luceno (0fa97cfb367df44e145122411898e4876fb605f1), Ismael Luceno, 03/25/2023

Archive powered by MHonArc 2.6.24.

Top of Page