From: Bram Moolenaar Date: Tue, 3 Nov 2015 21:03:16 +0000 (+0100) Subject: patch 7.4.909 X-Git-Tag: v7.4.909 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de59ba33aa3b94f2757dbf3451682d762c15ebcf;p=vim patch 7.4.909 Problem: "make install" fails. Solution: Only try installing desktop files if the destination directory exists. --- diff --git a/src/Makefile b/src/Makefile index 60d26c023..90b2f0cee 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2213,6 +2213,7 @@ install-languages: languages $(DEST_LANG) $(DEST_KMAP) ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps +DESKTOPPATH = $(DESTDIR)$(DATADIR)/applications KDEPATH = $(HOME)/.kde/share/icons install-icons: if test -d $(ICON48PATH) -a -w $(ICON48PATH) \ @@ -2227,8 +2228,11 @@ install-icons: -a ! -f $(ICON16PATH)/gvim.png; then \ $(INSTALL_DATA) $(SCRIPTSOURCE)/vim16x16.png $(ICON16PATH)/gvim.png; \ fi - $(INSTALL_DATA) $(SCRIPTSOURCE)/vim.desktop $(SCRIPTSOURCE)/gvim.desktop \ - $(DESTDIR)$(DATADIR)/applications + if test -d $(DESKTOPPATH) -a -w $(DESKTOPPATH); then \ + $(INSTALL_DATA) $(SCRIPTSOURCE)/vim.desktop \ + $(SCRIPTSOURCE)/gvim.desktop \ + $(DESKTOPPATH); \ + fi $(HELPSOURCE)/vim.1 $(MACROSOURCE) $(TOOLSSOURCE): @echo Runtime files not found. diff --git a/src/version.c b/src/version.c index ade4e962b..73713feac 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 909, /**/ 908, /**/