aboutsummaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2013-01-02 17:38:52 +1100
committerAndrew Tridgell <tridge@samba.org>2013-01-02 17:38:52 +1100
commit890b1ac0689984cb6bc4638cc2aa8ec869d14f91 (patch)
tree78c303680c24249cd77fd5f8fb819f0aedb791aa /nuttx
parent0fff8aa23b477bebda9c1a79f5cd0b5eceeb95d1 (diff)
downloadpx4-firmware-890b1ac0689984cb6bc4638cc2aa8ec869d14f91.tar.gz
px4-firmware-890b1ac0689984cb6bc4638cc2aa8ec869d14f91.tar.bz2
px4-firmware-890b1ac0689984cb6bc4638cc2aa8ec869d14f91.zip
build: cope better with absolute paths
Diffstat (limited to 'nuttx')
-rwxr-xr-xnuttx/tools/mkdeps.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/tools/mkdeps.sh b/nuttx/tools/mkdeps.sh
index acb600150..d8984e553 100755
--- a/nuttx/tools/mkdeps.sh
+++ b/nuttx/tools/mkdeps.sh
@@ -86,8 +86,12 @@ dodep ()
fi
done
if [ -z "$fullpath" ]; then
- echo "# ERROR: No readable file for $1 found at any location"
- show_usage
+ if [ -r $1 ]; then
+ fullpath=$1
+ else
+ echo "# ERROR: No readable file for $1 found at any location"
+ show_usage
+ fi
fi
fi