From: Sam S. <sd...@gn...> - 2009-08-06 14:38:10
|
Reini Urban wrote: > > diff -u -r1.40 clisp-link.in > --- src/clisp-link.in 17 Jun 2009 17:30:15 -0000 1.40 > +++ src/clisp-link.in 29 Jul 2009 19:30:59 -0000 > @@ -26,9 +26,13 @@ > link () { > # Make a link from $1 to $2. Try symbolic link, hard link, file copying. > rm -f "$2" > - ln -s "`normalize . $1`" "$2" 2>/dev/null || \ > - ln "$1" "$2" 2>/dev/null || \ > + if test ${1/.dll} != $1; then > cp -p "$1" "$2" > + else > + ln -s "`normalize . $1`" "$2" 2>/dev/null || \ > + ln "$1" "$2" 2>/dev/null || \ > + cp -p "$1" "$2" > + fi > } > wouldn't trying hard link before symlink be a better approach? |