[OpenWrt-Devel] [PATCH 2/8] scripts/patch-specs: add cygwin compatibility
Rosen Penev
rosenp at gmail.com
Mon Oct 7 21:02:19 EDT 2019
From: Alexey Loukianov <lx2 at lexa2.ru>
Fix patch-specs.sh to also look for "*-cpp.exe"
when searching for C preprocessor.
Signed-off-by: Alexey Loukianov <lx2 at lexa2.ru>
(Small title edit)
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
scripts/patch-specs.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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"
--
2.17.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list