Use getcwd() because it works under MSYS but `pwd` doesn't.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 3 Feb 2006 23:55:26 +0000 (23:55 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 3 Feb 2006 23:55:26 +0000 (23:55 +0000)
util/mklink.pl

index c8653cecc37852358a936fba593ab2c0af35de30..182732d9594c477a1e192aa5917f8dec506c5e4a 100755 (executable)
 # not contain symbolic links and that the parent of / is never referenced.
 # Apart from this, this script should be able to handle even the most
 # pathological cases.
+#
+
+use Cwd;
 
 my $from = shift;
 my @files = @ARGV;
 
 my @from_path = split(/[\\\/]/, $from);
-my $pwd = `pwd`;
-chop($pwd);
+my $pwd = getcwd();
+chomp($pwd);
 my @pwd_path = split(/[\\\/]/, $pwd);
 
 my @to_path = ();