summaryrefslogtreecommitdiffstats
path: root/build/linux
diff options
context:
space:
mode:
authorraphael.kubo.da.costa@intel.com <raphael.kubo.da.costa@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-16 11:49:19 +0000
committerraphael.kubo.da.costa@intel.com <raphael.kubo.da.costa@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-16 11:49:19 +0000
commit50e92527fc7dfa244613c2eb7109d3784bc8dfd1 (patch)
tree8e45817c38f38e35aa53e325530ddaf87b517216 /build/linux
parenta81935a72a62ae1ee50220cdfce71040f7ce8829 (diff)
downloadchromium_src-50e92527fc7dfa244613c2eb7109d3784bc8dfd1.zip
chromium_src-50e92527fc7dfa244613c2eb7109d3784bc8dfd1.tar.gz
chromium_src-50e92527fc7dfa244613c2eb7109d3784bc8dfd1.tar.bz2
Use `file --dereference' instead of `readlink -f' + `file'.
`readlink -f' is not standard and may not be present on all systems (such as some BSDs). Instead of the readlink+file combo, just ask file(1) to dereference the file it is given. R=mark@chromium.org Review URL: https://codereview.chromium.org/19221002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211783 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/linux')
-rwxr-xr-xbuild/linux/python_arch.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/build/linux/python_arch.sh b/build/linux/python_arch.sh
index c0b63a9..3a41f94 100755
--- a/build/linux/python_arch.sh
+++ b/build/linux/python_arch.sh
@@ -10,12 +10,7 @@
# python_arch.sh /path/to/sysroot/usr/lib/libpython2.4.so.1.0
#
-python=$(readlink -f "$1")
-if [ ! -r "$python" ]; then
- echo unknown
- exit 0
-fi
-file_out=$(file "$python")
+file_out=$(file --dereference "$1")
if [ $? -ne 0 ]; then
echo unknown
exit 0