From: Reini U. <ru...@x-...> - 2009-08-06 21:26:13
|
2009/8/6 Sam Steingold <sd...@gn...>: > 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? dll's only appear on windows. on windows there's only copy, no symlinked or hardlinked dll's possible to load by the native loader. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ |