Bugzilla – Attachment 1237 Details for
Bug 1283
findssl assumes existence of 'which'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add which as a shell function
x.1283 (text/plain), 665 bytes, created by
David Leonard
on 2007-02-13 16:47:35 AEDT
(
hide
)
Description:
add which as a shell function
Filename:
MIME Type:
Creator:
David Leonard
Created:
2007-02-13 16:47:35 AEDT
Size:
665 bytes
patch
obsolete
>Index: contrib/findssl.sh >=================================================================== >--- contrib/findssl.sh (revision 117) >+++ contrib/findssl.sh (working copy) >@@ -89,6 +89,25 @@ > LIBRARY_PATH=${LIBRARY_PATH:=$DEFAULT_LIBPATH} > export LIBPATH LD_LIBRARY_PATH LIBRARY_PATH > >+# not all platforms have a 'which' command >+if which ls >/dev/null 2>/dev/null; then >+ : which is defined >+else >+ which () { >+ saveIFS="$IFS" >+ IFS=: >+ for p in $PATH; do >+ if test -x "$p/$1" -a -f "$p/$1"; then >+ IFS="$saveIFS" >+ echo "$p/$1" >+ return 0 >+ fi >+ done >+ IFS="$saveIFS" >+ return 1 >+ } >+fi >+ > # > # Search for OpenSSL headers and print versions > #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1283
: 1237