diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-11 01:30:40 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-11 01:30:40 +0000 |
commit | a2edaab1b166b17bdaa06a95a1bcbecd5df5828a (patch) | |
tree | 8e38d33246ba4ab549dbdfb4085a2e7dffac93e9 /nuttx/tools/incdir.sh | |
parent | d88387609c9c0bc7698e6e789d36309b57956f2d (diff) | |
download | px4-nuttx-a2edaab1b166b17bdaa06a95a1bcbecd5df5828a.tar.gz px4-nuttx-a2edaab1b166b17bdaa06a95a1bcbecd5df5828a.tar.bz2 px4-nuttx-a2edaab1b166b17bdaa06a95a1bcbecd5df5828a.zip |
Don' depend on uname -o working
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3281 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/tools/incdir.sh')
-rwxr-xr-x | nuttx/tools/incdir.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/tools/incdir.sh b/nuttx/tools/incdir.sh index 447151ed3..e520ca21f 100755 --- a/nuttx/tools/incdir.sh +++ b/nuttx/tools/incdir.sh @@ -1,7 +1,7 @@ #!/bin/bash # tools/incdir.sh # -# Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. +# Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved. # Author: Gregory Nutt <spudmonkey@racsa.co.cr> # # Redistribution and use in source and binary forms, with or without @@ -109,7 +109,7 @@ fi # toolchains, we have to use the full windows-style paths to the header # files. -os=`uname -o` +os=`uname -o 2>/dev/null || echo "Other"` # Let's assume that all GCC compiler paths contain the string gcc and # no non-GCC compiler pathes include this substring |