From 38333a2aca5e794a5c4b0975d058c74399cc3969 Mon Sep 17 00:00:00 2001 From: Brian Havard Date: Fri, 3 Mar 2000 14:30:09 +0000 Subject: [PATCH] Allow scripts (that don't have a .exe extension) to be found by PrintPath under OS/2. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84706 13f79535-47bb-0310-9956-ffa450edef68 --- build/PrintPath | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/PrintPath b/build/PrintPath index 908d274008..68435f3744 100755 --- a/build/PrintPath +++ b/build/PrintPath @@ -99,6 +99,17 @@ do fi exit 0 fi + +# Next try without extension (if one was used above) + if [ "x$ext" != "x" ]; then + if [ $test_exec_flag $path/${program} ] && \ + [ ! -d $path/${program} ]; then + if [ "x$echo" = "xyes" ]; then + echo $path/${program} + fi + exit 0 + fi + fi done done exit 1 -- 2.40.0