aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-26 10:07:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-26 10:07:50 +0000
commitd5234a74b610795ac899a8f4fc2648d2ee1745e5 (patch)
treecda991adbdc49ed8d4f147d57f5cb08adb20d823
parentbf65d4aa772030b25a76c71fb0743d7fdfa50104 (diff)
downloadupstream-d5234a74b610795ac899a8f4fc2648d2ee1745e5.tar.gz
upstream-d5234a74b610795ac899a8f4fc2648d2ee1745e5.tar.bz2
upstream-d5234a74b610795ac899a8f4fc2648d2ee1745e5.zip
tools: fix stat symlink if destination already exists
SVN-Revision: 31072
-rw-r--r--tools/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 48cfbbcc5f..87a2940d02 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -102,6 +102,7 @@ endef
endif
$(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR)/.prepared
+ @rm -f $@
@if stat --version > /dev/null 2>&1; then \
ln -s `which stat` $@; \
elif gstat --version > /dev/null 2>&1; then \