installman: Update the sed patterns in installman.sh

Commit: 
https://github.com/vim/vim/commit/776b0700068c06b5dfc8531a7b0cb21c63d09192
Author: Julio B <[email protected]>
Date:   Fri Feb 13 08:50:52 2026 +0100

    installman: Update the sed patterns in installman.sh
    
    Problem: Installing man pages does not change the placeholder file paths
    Solution: Update the sed patterns in installman.sh
    
    Additionally we remove the sed command to update the path to the ps Vim
    files for those reasons:
    - All the postscript files were moved to the print/ subdirectory in
      Commit e37d50a
    - the sed command was wrongly quoting $vimloc so would wrongly try to
      search for the literal value $vimloc instead of using the expanded
      value.
    
    related: ce6fe84db21f
    closes:  #19382
    
    Signed-off-by: Julio B <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/installman.sh b/src/installman.sh
index 98bbb281a..f2ea796b5 100755
--- a/src/installman.sh
+++ b/src/installman.sh
@@ -52,6 +52,8 @@ if test $what = "install"; then
    if test -r $helpsource/vim$langadd.1; then
       echo installing $destdir/$exename.1
       LC_ALL=C sed -e s+/usr/local/lib/vim+$vimloc+ \
+             -e s+'/usr/local/share/vim/vim??'+$vimloc+ \
+             -e s+/usr/local/share/vim+$vimloc+ \
              -e s+$vimloc/doc+$helpsubloc+ \
              -e s+$vimloc/print+$printsubloc+ \
              -e s+$vimloc/syntax+$synsubloc+ \
@@ -63,7 +65,6 @@ if test $what = "install"; then
              -e s+$vimloc/filetype.vim+$scriptloc/filetype.vim+ \
              -e s+$vimloc/scripts.vim+$scriptloc/scripts.vim+ \
              -e s+$vimloc/optwin.vim+$scriptloc/optwin.vim+ \
-             -e 's+$vimloc/\*.ps+$scriptloc/\*.ps+' \
              $helpsource/vim$langadd.1 > $destdir/$exename.1
       chmod $manmod $destdir/$exename.1
    fi
@@ -72,6 +73,7 @@ if test $what = "install"; then
    if test -r $helpsource/vimtutor$langadd.1; then
       echo installing $destdir/$exename""tutor.1
       LC_ALL=C sed -e s+/usr/local/lib/vim+$vimloc+ \
+             -e s+'/usr/local/share/vim/vim??'+$vimloc+ \
              -e s+$vimloc/tutor+$tutorsubloc+ \
              $helpsource/vimtutor$langadd.1 > $destdir/$exename""tutor.1
       chmod $manmod $destdir/$exename""tutor.1
@@ -88,6 +90,7 @@ if test $what = "install"; then
    if test -r $helpsource/evim$langadd.1; then
       echo installing $destdir/$evimname.1
       LC_ALL=C sed -e s+/usr/local/lib/vim+$vimloc+ \
+             -e s+'/usr/local/share/vim/vim??'+$vimloc+ \
              -e s+$vimloc/evim.vim+$scriptloc/evim.vim+ \
              $helpsource/evim$langadd.1 > $destdir/$evimname.1
       chmod $manmod $destdir/$evimname.1

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vqo5v-009iGS-3L%40256bit.org.

Raspunde prin e-mail lui