diff mbox series

[OpenWrt-Devel,2/8] scripts/patch-specs: add cygwin compatibility

Message ID 20191008010225.8822-2-rosenp@gmail.com
State Rejected
Delegated to: Petr Štetiar
Headers show
Series [OpenWrt-Devel,1/8] ncurses: add cygwin compatibility | expand

Commit Message

Rosen Penev Oct. 8, 2019, 1:02 a.m. UTC
From: Alexey Loukianov <lx2@lexa2.ru>

Fix patch-specs.sh to also look for "*-cpp.exe"
when searching for C preprocessor.

Signed-off-by: Alexey Loukianov <lx2@lexa2.ru>
(Small title edit)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 scripts/patch-specs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/patch-specs.sh b/scripts/patch-specs.sh
index 2262e218fe..8c6c0a9655 100755
--- a/scripts/patch-specs.sh
+++ b/scripts/patch-specs.sh
@@ -11,7 +11,7 @@  fi
 
 echo -n "Locating cpp ... "
 for bin in bin usr/bin usr/local/bin; do
-	for cmd in "$DIR/$bin/"*-cpp; do
+	for cmd in "$DIR/$bin/"*-cpp "$DIR/$bin/"*-cpp.exe; do
 		if [ -x "$cmd" ]; then
 			echo "$cmd"
 			CPP="$cmd"