]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
installman: Update the sed patterns in installman.sh
authorJulio B <julio.bacel@gmail.com>
Fri, 13 Feb 2026 07:50:52 +0000 (08:50 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 13 Feb 2026 07:50:52 +0000 (08:50 +0100)
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 <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/installman.sh

index 98bbb281ab0ced0dfe27aa3560eac08699d5e360..f2ea796b5a52357c49053b98a4a1f07af147262a 100755 (executable)
@@ -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