Просмотр исходного кода

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 лет назад
Родитель
Сommit
8b619436a8
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      core/deps.mk

+ 1 - 0
core/deps.mk

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