mirror of https://github.com/ArduPilot/ardupilot
build: fixed a build cmp warning
This commit is contained in:
parent
4a77a944fa
commit
ceef872a51
|
@ -74,7 +74,7 @@ $(SKETCHCPP): showflags $(SKETCHCPP_SRC)
|
|||
$(v)echo "#line 1 \"autogenerated\"" >> $@.new
|
||||
$(v)$(AWK) '$(SKETCH_PROTOTYPER)' $(SKETCHCPP_SRC) >> $@.new
|
||||
$(v)$(AWK) -v mode=body '$(SKETCH_SPLITTER)' $(SKETCHCPP_SRC) >> $@.new
|
||||
$(v)cmp $@ $@.new 2>/dev/null || mv $@.new $@
|
||||
$(v)cmp $@ $@.new > /dev/null 2>&1 || mv $@.new $@
|
||||
$(v)rm -f $@.new
|
||||
|
||||
# delete the sketch.cpp file if a processing error occurs
|
||||
|
|
Loading…
Reference in New Issue