Like MD_Init, MD now must include a NULL engine pointer in its definition.
[openssl.git] / util / mklink.pl
index 5c3d5976dd10057da567b811ba4d841e74695d15..9e9c9a514677af6385dbe8e9d15f02e65ffe72a4 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/local/bin/perl
 
-# mklink.pl -- a faster substitute for mklink.sh.
+# mklink.pl
 
 # The first command line argument is a non-empty relative path
 # specifying the "from" directory.
@@ -48,8 +48,13 @@ foreach $dirname (@from_path) {
 my $to = join('/', @to_path);
 
 my $file;
+$symlink_exists=eval {symlink("",""); 1};
 foreach $file (@files) {
-#    print "ln -s $to/$file $from/$file\n";
-    symlink("$to/$file", "$from/$file");
-    print $file . " => $from/$file\n";
+    my $err = "";
+    if ($symlink_exists) {
+       symlink("$to/$file", "$from/$file") or $err = " [$!]";
+    } else {
+       system ("cp", "$file", "$from/$file") and $err = " [$!]";
+    }
+    print $file . " => $from/$file$err\n";
 }