Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (89a5ea6374254aae3bb0536303d7da51a3a39021)

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 grimoire by Ismael Luceno (89a5ea6374254aae3bb0536303d7da51a3a39021)
  • Date: Sat, 26 Aug 2023 16:38:05 +0000

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

FUNCTIONS | 20 +++++++++++++++++---
http/lynx/DETAILS | 1 +
2 files changed, 18 insertions(+), 3 deletions(-)

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

lynx: Add Watch line

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

FUNCTIONS: apply_patch_dir: Report if there's no patches to apply

diff --git a/FUNCTIONS b/FUNCTIONS
index 849b383..1b70493 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -285,11 +285,25 @@ function install_www_files ()
}

#---------------------------------------------------------------------
+## Internal function to find patches
+#---------------------------------------------------------------------
+apply_patch_dir_find() {
+ local dir="$SPELL_DIRECTORY/$1"; shift
+ find "$dir" \( -name \*.patch -o -name \*.diff \) "$@"
+}
+
+#---------------------------------------------------------------------
## Apply patches from a directory
#---------------------------------------------------------------------
-function apply_patch_dir() {
- [ -d "$SPELL_DIRECTORY/$1" ] || return 0
- find "$SPELL_DIRECTORY/$1" \( -name \*.patch -o -name \*.diff \) -print0 |
+apply_patch_dir() {
+ # Check the directory exists and contains files.
+ if ! [ -d "$SPELL_DIRECTORY/$1" ] ||
+ ! apply_patch_dir_find "$1" -mindepth 1 -exec false {} + -quit
+ then
+ messsage "${MESSAGE_COLOR}No patches found.$DEFAULT_COLOR"
+ return
+ fi
+ apply_patch_dir_find "$1" -print0 |
sort -zV | xargs -r -0 -n 1 -t patch -fp1 -i
}

diff --git a/http/lynx/DETAILS b/http/lynx/DETAILS
index 6301fd8..186462d 100755
--- a/http/lynx/DETAILS
+++ b/http/lynx/DETAILS
@@ -1,3 +1,4 @@
+# Watch: https://invisible-island.net/archives/lynx/tarballs/
lynx([0-9.]+rel[.][0-9]+)[.]tar
SPELL=lynx
VERSION=2.8.9rel.1
SOURCE=${SPELL}${VERSION}.tar.bz2



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (89a5ea6374254aae3bb0536303d7da51a3a39021), Ismael Luceno, 08/26/2023

Archive powered by MHonArc 2.6.24.

Top of Page