aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2017-05-10 19:06:46 +0200
committerLoïc Hoguin <[email protected]>2017-05-12 11:29:33 +0200
commit8b619436a8307367a3c29684ee17ff4ba0c4ef9b (patch)
treebb7118f270ce9bc838be04b0a766f902b2325ee5 /core
parent516f2706b948365c9b5cc4bd5b1bb1fb8011f414 (diff)
downloaderlang.mk-8b619436a8307367a3c29684ee17ff4ba0c4ef9b.tar.gz
erlang.mk-8b619436a8307367a3c29684ee17ff4ba0c4ef9b.tar.bz2
erlang.mk-8b619436a8307367a3c29684ee17ff4ba0c4ef9b.zip
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.
Diffstat (limited to 'core')
-rw-r--r--core/deps.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk
index f44e567..d74a2ae 100644
--- a/core/deps.mk
+++ b/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 \