]> granicus.if.org Git - vim/commitdiff
patch 8.1.0222: errors are reported for "make install" v8.1.0222
authorBram Moolenaar <Bram@vim.org>
Sat, 28 Jul 2018 16:16:48 +0000 (18:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 28 Jul 2018 16:16:48 +0000 (18:16 +0200)
Problem:    Errors are reported for "make install".
Solution:   Skip missing language files. (Christian Brabandt, closes #3254)

src/installman.sh
src/version.c

index a2f09ad35ec4dbec99ec769c333379a708240cbf..23fc32568b3ade0967e36e9a20820dbff22af2a5 100755 (executable)
@@ -48,41 +48,49 @@ fi
 
 if test $what = "install"; then
    # vim.1
-   echo installing $destdir/$exename.1
-   LC_ALL=C sed -e s+/usr/local/lib/vim+$vimloc+ \
-          -e s+$vimloc/doc+$helpsubloc+ \
-          -e s+$vimloc/print+$printsubloc+ \
-          -e s+$vimloc/syntax+$synsubloc+ \
-          -e s+$vimloc/tutor+$tutorsubloc+ \
-          -e s+$vimloc/vimrc+$vimrcloc/vimrc+ \
-          -e s+$vimloc/gvimrc+$vimrcloc/gvimrc+ \
-          -e s+$vimloc/menu.vim+$scriptloc/menu.vim+ \
-          -e s+$vimloc/bugreport.vim+$scriptloc/bugreport.vim+ \
-          -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
+   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+$vimloc/doc+$helpsubloc+ \
+             -e s+$vimloc/print+$printsubloc+ \
+             -e s+$vimloc/syntax+$synsubloc+ \
+             -e s+$vimloc/tutor+$tutorsubloc+ \
+             -e s+$vimloc/vimrc+$vimrcloc/vimrc+ \
+             -e s+$vimloc/gvimrc+$vimrcloc/gvimrc+ \
+             -e s+$vimloc/menu.vim+$scriptloc/menu.vim+ \
+             -e s+$vimloc/bugreport.vim+$scriptloc/bugreport.vim+ \
+             -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
 
    # vimtutor.1
-   echo installing $destdir/$exename""tutor.1
-   LC_ALL=C sed -e s+/usr/local/lib/vim+$vimloc+ \
-          -e s+$vimloc/tutor+$tutorsubloc+ \
-          $helpsource/vimtutor$langadd.1 > $destdir/$exename""tutor.1
-   chmod $manmod $destdir/$exename""tutor.1
+   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+$vimloc/tutor+$tutorsubloc+ \
+             $helpsource/vimtutor$langadd.1 > $destdir/$exename""tutor.1
+      chmod $manmod $destdir/$exename""tutor.1
+   fi
 
    # vimdiff.1
-   echo installing $destdir/$vimdiffname.1
-   cp $helpsource/vimdiff$langadd.1 $destdir/$vimdiffname.1
-   chmod $manmod $destdir/$vimdiffname.1
+   if test -r $helpsource/vimdiff$langadd.1; then
+      echo installing $destdir/$vimdiffname.1
+      cp $helpsource/vimdiff$langadd.1 $destdir/$vimdiffname.1
+      chmod $manmod $destdir/$vimdiffname.1
+   fi
 
    # evim.1
-   echo installing $destdir/$evimname.1
-   LC_ALL=C sed -e s+/usr/local/lib/vim+$vimloc+ \
-          -e s+$vimloc/evim.vim+$scriptloc/evim.vim+ \
-          $helpsource/evim$langadd.1 > $destdir/$evimname.1
-   chmod $manmod $destdir/$evimname.1
+   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+$vimloc/evim.vim+$scriptloc/evim.vim+ \
+             $helpsource/evim$langadd.1 > $destdir/$evimname.1
+      chmod $manmod $destdir/$evimname.1
+   fi
 fi
 
 if test $what = "uninstall"; then
@@ -105,7 +113,7 @@ if test $what = "uninstall"; then
    fi
 fi
 
-if test $what = "xxd"; then
+if test $what = "xxd" -a -r "$helpsource/xxd${langadd}.1"; then
    echo installing $destdir/xxd.1
    cp $helpsource/xxd$langadd.1 $destdir/xxd.1
    chmod $manmod $destdir/xxd.1
index 23952a0b22750cf55b947c982a8191313ebdaad5..968ff96ad4b8e7cb29a5b7a087f8f391a2e7472a 100644 (file)
@@ -798,6 +798,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    222,
 /**/
     221,
 /**/