Browse Source

core/deps.mk: Move .app in autopatch2 only if file exists

This silences warnings such as:

    mv: rename file.app to file.app.src: No such file or directory

They are harmless really, but still annoying.
Jean-Sébastien Pédron 8 years ago
parent
commit
8b619436a8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/deps.mk

+ 1 - 0
core/deps.mk

@@ -129,6 +129,7 @@ define dep_autopatch
 endef
 
 define dep_autopatch2
+	! test -f $(DEPS_DIR)/$1/ebin/$1.app || \
 	mv -n $(DEPS_DIR)/$1/ebin/$1.app $(DEPS_DIR)/$1/src/$1.app.src; \
 	rm -f $(DEPS_DIR)/$1/ebin/$1.app; \
 	if [ -f $(DEPS_DIR)/$1/src/$1.app.src.script ]; then \