projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b50f99
)
Minor portability update to c_rehash.
author
Andy Polyakov
<appro@openssl.org>
Thu, 26 Oct 2006 10:52:12 +0000
(10:52 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Thu, 26 Oct 2006 10:52:12 +0000
(10:52 +0000)
tools/c_rehash.in
patch
|
blob
|
history
diff --git
a/tools/c_rehash.in
b/tools/c_rehash.in
index ca3021ae8a4ff2ccf1a2f121a60f8ba6e20c9aef..96a73aeedd835c220d41053322770e8ec2b05b3f 100644
(file)
--- a/
tools/c_rehash.in
+++ b/
tools/c_rehash.in
@@
-15,7
+15,13
@@
if(defined $ENV{OPENSSL}) {
$ENV{OPENSSL} = $openssl;
}
-my $pwd = `pwd`; chomp $pwd;
+my $pwd;
+eval "require Cwd";
+if (defined(&Cwd::getcwd)) {
+ $pwd=Cwd::getcwd();
+} else {
+ $pwd=`pwd`; chomp($pwd);
+}
my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':'; # DOS/Win32 or Unix delimiter?
$ENV{PATH} .= "$path_delim$dir/bin";