From 71dd30c4c601175990c26f1d2126816f8f2a498c Mon Sep 17 00:00:00 2001 From: Martin Buck Date: Wed, 18 Oct 2023 00:09:37 +0200 Subject: [PATCH] Allow word-wrapping in long path names in man page --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7e74e05..e564b99 100644 --- a/Makefile +++ b/Makefile @@ -510,6 +510,8 @@ libcalc${LIB_EXT_VER}: libcalc${LIB_EXT_VERSION} # ### +# Note: The :\(...-sed pattern below allows word wrapping at the separators +# of long path names (typically CALCPATH and CALCRC). calc.1: calc.man ${MK_SET} ${RM} -f $@ ${Q} echo forming calc.1 from calc.man @@ -523,7 +525,8 @@ calc.1: calc.man ${MK_SET} -e 's,$${CUSTOMINCDIR},${CUSTOMINCDIR},g' \ -e 's,$${HELPDIR},${HELPDIR},g' \ -e 's,$${CUSTOMHELPDIR},${CUSTOMHELPDIR},g' \ - -e 's,$${CALCRC},${CALCRC},g' < calc.man > calc.1 + -e 's,$${CALCRC},${CALCRC},g' \ + -e 's,:\([/.~]\),:\\:\1,g' < calc.man > calc.1 ${Q} echo calc.1 formed calc.usage: calc.1 ${MK_SET}