Further cygwin installperl tweak from Gerrit P. Haase.
Jarkko Hietaniemi [Sun, 27 Jan 2002 23:49:40 +0000 (23:49 +0000)]
p4raw-id: //depot/perl@14456

installperl

index c4cab78..6b702bd 100755 (executable)
@@ -245,7 +245,7 @@ if (($Is_W32 and ! $Is_NetWare)  or $Is_Cygwin) {
         chmod(0755, "$installbin/$_");
       };
       { 
-               open (LD2, "$installbin/ld2");
+               open (LD2, ">$installbin/ld2");
                print LD2 "#!/bin/sh\n#\n# ld wrapper, passes all args to perlld;\n#\n"
                          . "for trythis in $installbin/perl\ndo\n  if [ -x \$trythis ]\n"
                          . "  then\n    \$trythis $installbin/perlld \"\$\@\"\n"