sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by Ismael Luceno (de280f2600c50d38442196bcfab9643f82b6f1ce)
- 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 (de280f2600c50d38442196bcfab9643f82b6f1ce)
- Date: Sat, 10 Jun 2023 16:58:44 +0000
GIT changes to master sorcery by Ismael Luceno <ismael AT sourcemage.org>:
usr/lib/sorcery/cmd/sightsee | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
New commits:
commit de280f2600c50d38442196bcfab9643f82b6f1ce
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
sightsee: Allow multiple matches per line
diff --git a/usr/lib/sorcery/cmd/sightsee b/usr/lib/sorcery/cmd/sightsee
index f9fdbe0..6dcb238 100755
--- a/usr/lib/sorcery/cmd/sightsee
+++ b/usr/lib/sorcery/cmd/sightsee
@@ -9,11 +9,16 @@ upstream_rel_get() {
(curl) curl -s "$1" ;;
(*) wget -q -O- "$1" ;;
esac | gawk -vdebug="$debug" -vfname="$2" '
- match(tolower($0), fname, V) {
- $0 = substr($0, RSTART, RLENGTH)
- if (debug)
- printf "D: matched `%s`\n", $0 >"/dev/stderr"
- print V[1 in V]
+ {
+ while (match(tolower($0), fname, V)) {
+ if (debug) {
+ printf "D: matched `%s`\n", \
+ substr($0, RSTART, RLENGTH) \
+ >"/dev/stderr"
+ }
+ print V[1 in V]
+ $0 = substr($0, RSTART + RLENGTH)
+ }
}
' | sort -urV
}
- [SM-Commit] GIT changes to master sorcery by Ismael Luceno (de280f2600c50d38442196bcfab9643f82b6f1ce), Ismael Luceno, 06/10/2023
Archive powered by MHonArc 2.6.24.