This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

crosstool enhancement


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]