changeset 16934:87abfb36d815 v8.1.1468

patch 8.1.1468: the generated desktop files may be invalid commit https://github.com/vim/vim/commit/d0380dc7820828cb7faa06138d4e86a63c1d755d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 5 21:25:34 2019 +0200 patch 8.1.1468: the generated desktop files may be invalid Problem: The generated desktop files may be invalid. Solution: Check validity with desktop-file-validate. (Christian Brabandt, Will Thompson, closes #4480)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Jun 2019 21:30:07 +0200
parents dbf4072df1ee
children 60e55f8239ed
files src/po/Makefile src/version.c
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/po/Makefile
+++ b/src/po/Makefile
@@ -151,7 +151,7 @@ prefixcheck:
 
 clean: checkclean
 	rm -f core core.* *.old.po *.mo *.pot sjiscorr
-	rm -f LINGUAS vim.desktop gvim.desktop
+	rm -f LINGUAS vim.desktop gvim.desktop tmp_*desktop
 
 distclean: clean
 
@@ -167,13 +167,17 @@ checkclean:
 
 vim.desktop: vim.desktop.in $(POFILES)
 	@echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS
-	$(MSGFMT) --desktop -d . --template vim.desktop.in -o vim.desktop
+	$(MSGFMT) --desktop -d . --template vim.desktop.in -o tmp_vim.desktop
 	rm -f LINGUAS
+	if command -v desktop-file-validate; then desktop-file-validate tmp_vim.desktop; fi
+	mv tmp_vim.desktop vim.desktop
 
 gvim.desktop: gvim.desktop.in $(POFILES)
 	@echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS
-	$(MSGFMT) --desktop -d . --template gvim.desktop.in -o gvim.desktop
+	$(MSGFMT) --desktop -d . --template gvim.desktop.in -o tmp_gvim.desktop
 	rm -f LINGUAS
+	if command -v desktop-file-validate; then desktop-file-validate tmp_gvim.desktop; fi
+	mv tmp_gvim.desktop gvim.desktop
 
 update-po: $(LANGUAGES)
 
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1468,
+/**/
     1467,
 /**/
     1466,