Changeset 31059 for trunk


Ignore:
Timestamp:
2012-03-23T15:10:28+01:00 (5 years ago)
Author:
nbd
Message:

tools: fix GNU stat detection to prevent it from picking up other things named "gstat" (see #4571)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Makefile

    r30861 r31059  
    102102endif 
    103103 
     104$(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR)/.prepared 
     105        @if stat --version > /dev/null 2>&1; then \ 
     106                ln -s `which stat` $@; \ 
     107        elif gstat --version > /dev/null 2>&1; then \ 
     108                ln -s `which gstat` $@; \ 
     109        else \ 
     110                echo "GNU stat not found"; \ 
     111                false; \ 
     112        fi 
     113 
    104114$(eval $(call PrepareCommand,find,gfind find)) 
    105115$(eval $(call PrepareCommand,md5sum,md5sum $(SCRIPT_DIR)/md5sum)) 
    106116$(eval $(call PrepareCommand,cp,gcp cp)) 
    107 $(eval $(call PrepareCommand,stat,gstat stat)) 
    108117$(eval $(call PrepareCommand,seq,gseq seq)) 
    109118 
Note: See TracChangeset for help on using the changeset viewer.