# HG changeset patch # User Bram Moolenaar # Date 1540737905 -3600 # Node ID d148cd1163a565651a7984b4ca479c8898175400 # Parent 4874d0c1915cafe6826b7642f85b6cedb890c080 patch 8.1.0500: cleaning up in src/tee may not always work commit https://github.com/vim/vim/commit/833e5dab143034b7e43bc0be49b2eb3687ff9ab7 Author: Bram Moolenaar Date: Sun Oct 28 15:43:58 2018 +0100 patch 8.1.0500: cleaning up in src/tee may not always work Problem: Cleaning up in src/tee may not always work. Solution: Use "rm" when appropriate. (Michael Soyka, closes https://github.com/vim/vim/issues/3571) diff --git a/src/tee/Makefile b/src/tee/Makefile --- a/src/tee/Makefile +++ b/src/tee/Makefile @@ -3,6 +3,12 @@ CC=gcc CFLAGS=-O2 -fno-strength-reduce +ifneq (sh.exe, $(SHELL)) +DEL = rm +else +DEL = del +endif + tee.exe: tee.o $(CC) $(CFLAGS) -s -o $@ $< @@ -10,6 +16,6 @@ tee.o: tee.c $(CC) $(CFLAGS) -c $< clean: - - del tee.o - - del tee.exe + - $(DEL) tee.o + - $(DEL) tee.exe diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -793,6 +793,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 500, +/**/ 499, /**/ 498,