crosstool enhancement

Roman Duka rduka@mail.ru
Thu Feb 12 23:40:00 GMT 2004


Dan I've just noticed the following comment in crosstool.sh file on 
lines 304-305

# Any file in a list of known suspects that isn't a symlink is assumed 
to be a linker script.
# FIXME: test -h is not portable

well I had the same problem, and I think this is a sure way to solve it:

file -b /some_path/some_file | grep 'symbolic link' > /dev/null
issymlink=$?

if test $issymlink -eq 0
then
	echo "This is a symbolic link"
else
	echo "Not a symbolic link"
fi

Cheers


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list