mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
tools: fix stat symlink if destination already exists
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31072 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -102,6 +102,7 @@ endef
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR)/.prepared
|
$(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR)/.prepared
|
||||||
|
@rm -f $@
|
||||||
@if stat --version > /dev/null 2>&1; then \
|
@if stat --version > /dev/null 2>&1; then \
|
||||||
ln -s `which stat` $@; \
|
ln -s `which stat` $@; \
|
||||||
elif gstat --version > /dev/null 2>&1; then \
|
elif gstat --version > /dev/null 2>&1; then \
|
||||||
|
|||||||
Reference in New Issue
Block a user