nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gn...@apache.org
Subject [incubator-nuttx] 01/02: tools/Config.mk: implement a simple version of TESTANDREPLACEFILE for Windows
Date Mon, 23 Mar 2020 18:23:34 GMT
This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit aaa32156dfb4e377547b39004403886fd9afd2c8
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
AuthorDate: Mon Mar 23 17:34:01 2020 +0800

    tools/Config.mk: implement a simple version of TESTANDREPLACEFILE for Windows
---
 tools/Config.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/Config.mk b/tools/Config.mk
index 1b3f826..32ba80d 100644
--- a/tools/Config.mk
+++ b/tools/Config.mk
@@ -346,7 +346,11 @@ endif
 # args: $1 - newfile:  Temporary file to test
 #       $2 - oldfile:  File to replace
 
-ifneq ($(CONFIG_WINDOWS_NATIVE),y)
+ifeq ($(CONFIG_WINDOWS_NATIVE),y)
+define TESTANDREPLACEFILE
+	$(Q) move /Y $1 $2
+endef
+else
 define TESTANDREPLACEFILE
 	if [ -f $2 ]; then \
 		if cmp $1 $2; then \


Mime
View raw message