You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/05/23 15:27:23 UTC

[incubator-nuttx] branch master updated: build: incdir.sh shouldn't check whether the path exist

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 2a2ffe4  build: incdir.sh shouldn't check whether the path exist
2a2ffe4 is described below

commit 2a2ffe41dd445be2c7d29b0ff35c92d8a5257267
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri May 22 02:43:08 2020 +0800

    build: incdir.sh shouldn't check whether the path exist
    
    since compiler never complain that the path(by -I) doesn't exist
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 tools/incdir.bat | 5 -----
 tools/incdir.sh  | 8 --------
 2 files changed, 13 deletions(-)

diff --git a/tools/incdir.bat b/tools/incdir.bat
index 81b5c6e..4553556 100755
--- a/tools/incdir.bat
+++ b/tools/incdir.bat
@@ -98,11 +98,6 @@ if "%1" == "" (
   goto :End
 )
 
-if not exist %1 (
-  echo ERROR: Path %1 does not exist
-  goto :Usage
-)
-
 if "%fmt%"=="zds" goto :GenerateZdsPath
 if "%response%"=="" goto :FirstStdPath
 if "%pathtype%"=="system" goto :NextStdSystemPath
diff --git a/tools/incdir.sh b/tools/incdir.sh
index b6c8cc6..d85ca5c 100755
--- a/tools/incdir.sh
+++ b/tools/incdir.sh
@@ -191,14 +191,6 @@ fi
 unset response
 for dir in $dirlist; do
 
-  # Verify that the include directory exists
-
-  if [ ! -d $dir ]; then
-    echo "Include path '$dir' does not exist"
-    echo $showusage
-    exit 1
-  fi
-
   # Check if the path needs to be extended for Windows-based tools under Cygwin
   # windows=yes:  We are building for a windows platform
   # wintool=y:    The platform is Cygwin and we are using a windows native tool