mirror of
https://github.com/apache/nuttx.git
synced 2026-08-05 06:10:27 +00:00
tools/Config.mk: implement a simple version of TESTANDREPLACEFILE for Windows
This commit is contained in:
parent
1848e83257
commit
aaa32156df
1 changed files with 5 additions and 1 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue