summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2000-03-03 14:30:09 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2000-03-03 14:30:09 +0000
commitaac7c0eb4239188bccf243acfe50d289de020d9f (patch)
tree1c982ede6ced78659ba7fa794c91394fb68679bd /helpers
parent2741d0056bbe6df5492908abe89d69989bc9e201 (diff)
downloadlibapr-aac7c0eb4239188bccf243acfe50d289de020d9f.tar.gz
Allow scripts (that don't have a .exe extension) to be found by PrintPath
under OS/2. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/PrintPath11
1 files changed, 11 insertions, 0 deletions
diff --git a/helpers/PrintPath b/helpers/PrintPath
index 908d27400..68435f374 100755
--- a/helpers/PrintPath
+++ b/helpers/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