From: Felix Fietkau Date: Mon, 26 Mar 2012 10:07:50 +0000 (+0000) Subject: tools: fix stat symlink if destination already exists X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=d422ea389a915f14d8143e5093da49c6eadef14a tools: fix stat symlink if destination already exists SVN-Revision: 31072 --- 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 \