[jhalfs] 02/03: Remove COMMIT from configuration if set to default

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Fri, 07 Mar 2025 09:28:52 +0000
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit 28d63519556b1af9bfebd35c62904764cfa611c4
Author: Pierre Labastie <[email protected]>
AuthorDate: Fri Mar 7 09:50:27 2025 +0100

    Remove COMMIT from configuration if set to default
    
    This is needed if we want commit to depend on multilib setting.
    But we should not remove commit if set to something which is not
    the default, because, a user may want to use a specific commit, and
    not have to type it everytime make is run...
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index bdd1fde..f50c96e 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,8 @@ all: menuconfig
 	@$$(grep RUN_ME configuration 2>/dev/null | sed -e 's@RUN_ME=\"@@' -e 's@\"@@')
 
 menuconfig:
+	@if grep -E -q '(COMMIT="trunk"|COMMIT="multilib")' configuration; \
+		then sed -i /COMMIT/d configuration; fi
 	@cp -a configuration configuration.old 2>/dev/null || true
 	@CONFIG_="" KCONFIG_CONFIG=configuration \
 	    python3 $(CONFIG)/menuconfig.py $(CONFIG_CONFIG_IN)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page