Skip to Content.
Sympa Menu

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

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, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master sorcery by Ismael Luceno (fc59406e956c8cf46f4b41d082051083eecc46f2)
  • Date: Mon, 24 Nov 2025 02:08:08 +0000

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

install | 2 +-
usr/lib/sorcery/cmd/sightsee | 12 +++++++-----
var/lib/sorcery/modules/libcodex | 2 +-
3 files changed, 9 insertions(+), 7 deletions(-)

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

sightsee: Match github/gitlab tags with spell name as prefix

Some projects use the project name as a prefix instead of "v" prefix.

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

sightsee: Take the last group in the regex as the version

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

libcodex: Fix codex_get_spell_description on a non-tty

Default to a width of 80 so it works with pipes.

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

install: Install wrapper for clang++

diff --git a/install b/install
index 4c2c835..d87f557 100755
--- a/install
+++ b/install
@@ -80,7 +80,7 @@ then
done
fi
fi
-for COMPILER in clang cc gcc c++ g++ $HOST_COMPILE; do
+for COMPILER in clang cc gcc c++ g++ clang++ $HOST_COMPILE; do
ln -vsf "run_compiler" "$COMPILER"
echo $BUILD_DIR/$COMPILER >> $SORCERY_INSTALL_LOG
done
diff --git a/usr/lib/sorcery/cmd/sightsee b/usr/lib/sorcery/cmd/sightsee
index 17523a1..340bd61 100755
--- a/usr/lib/sorcery/cmd/sightsee
+++ b/usr/lib/sorcery/cmd/sightsee
@@ -11,12 +11,14 @@ upstream_rel_get() {
esac | gawk -vdebug="$debug" -vfname="$2" '
{
while (match(tolower($0), fname, V)) {
+ matched = int((length(V)-1)/3)
if (debug) {
- printf "D: matched `%s`\n", \
- substr($0, RSTART, RLENGTH) \
+ printf "D: matched `%s` -> (%d) `%s`\n", \
+ substr($0, RSTART, RLENGTH), \
+ matched, V[matched] \
>"/dev/stderr"
}
- print V[1 in V]
+ print V[matched]
$0 = substr($0, RSTART + RLENGTH)
}
}
@@ -100,9 +102,9 @@ find "${paths[@]}" -name DETAILS -exec awk
-vdebug="$debug" '
}
function select_regex(spell, url) {
if (url ~ /^https:\/\/github\.com\/.*\/tags$/)
- return "/archive/refs/tags/v?([0-9.]+)[.]tar"
+ return "/archive/refs/tags/(v|" spell
"-)?([0-9.]+)[.]tar"
if (url ~ /gitlab/)
- return "/" spell "/-/archive/v?([0-9.]+)/" spell "-"
+ return "/" spell "/-/archive/(v|" spell
"-)?([0-9.]+)/" spell "-"
return spell \
"[-_](R?[-_.+~0-9]+(([a-z]|rc|alpha|beta)[0-9]*)?)" \
"([-.]src|[-.]sources?)?" \
diff --git a/var/lib/sorcery/modules/libcodex
b/var/lib/sorcery/modules/libcodex
index 5b4f9e5..5b5b067 100755
--- a/var/lib/sorcery/modules/libcodex
+++ b/var/lib/sorcery/modules/libcodex
@@ -1048,7 +1048,7 @@ codex_find_spell_or_section_by_name() {
#---------------------------------------------------------------------
codex_get_spell_description() {
local width=$(stty size | cut -d' ' -f2)
- codex_is_directory_a_spell "$1" && . "$1/DETAILS" | fmt -w $width -s
+ codex_is_directory_a_spell "$1" && . "$1/DETAILS" | fmt -w
${width:-80} -s
}

#---------------------------------------------------------------------


  • [[SM-Commit] ] GIT changes to master sorcery by Ismael Luceno (fc59406e956c8cf46f4b41d082051083eecc46f2), Ismael Luceno, 11/23/2025

Archive powered by MHonArc 2.6.24.

Top of Page