git: 50bcfdc22684 - main - Mk/bsd.port.mk: Fix make describe-json
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 17 Aug 2025 10:24:23 UTC
The branch main has been updated by fernape:
URL: https://cgit.FreeBSD.org/ports/commit/?id=50bcfdc22684d461f1c54a95e7fc6fec1de5f799
commit 50bcfdc22684d461f1c54a95e7fc6fec1de5f799
Author: Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2025-08-06 16:59:09 +0000
Commit: Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2025-08-17 10:00:56 +0000
Mk/bsd.port.mk: Fix make describe-json
Properly escape DEPRECATED variable.
Approved by: portmgr@ (mat@)
Differential Revision: https://reviews.freebsd.org/D51786
---
Mk/bsd.port.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 0aa79aed7ed0..b3726c98b067 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -4489,7 +4489,7 @@ describe-json:
${ECHO_CMD} \"complete_options_list\":[\"${COMPLETE_OPTIONS_LIST:ts,:S/,/\",\"/g}\"], ;\
${ECHO_CMD} \"categories\":[\"${CATEGORIES:ts,:S/,/\",\"/g}\"], ;\
${ECHO_CMD} \"license\":[\"${LICENSE:ts,:S/,/\",\"/g}\"], ;\
- ${ECHO_CMD} \"deprecated\":\""${DEPRECATED:S/"/\\\"/g:S/\\\\*/*/g:S/\\\'/'/g}" \", ;\
+ ${ECHO_CMD} \"deprecated\":\"${DEPRECATED:Q:S/"/\\\"/g:S/\\\\*/*/g:S/\\\'/'/g}\", ;\
${ECHO_CMD} \"broken\":\"${BROKEN:Q:S/"/\\\"/g:S/\\\\*/*/g:S/\\\'/'/g}\", ;\
${ECHO_CMD} \"distversion\":\"${DISTVERSION}\", ;\
${ECHO_CMD} \"distversionprefix\":\"${DISTVERSIONPREFIX}\", ;\