Alex Ferguson writes:
> 
> This is a re-send, apologies if it turns up twice.
> 
> 
> Ghc builds and sinstalls smoother than other, apart from one _leetle_
> glitch, which still requires (minimal) manual intervention:
> 
> ln -s ghc-3.02 /usr/local/bin/ghc
> ln: cannot create /usr/local/bin/ghc: File exists
> gnumake[2]: *** [install] Error 2
> gnumake[1]: *** [install] Error 1
> gnumake: *** [install] Error 1
> 
> Wouldn't it be a little neater for the installation script to relink or
> remove the "old" ghc, at least in the case that it really is just a
> symbolic link?
> 

(I'm assuming you're talking about binary distributions, since the
"install" Makefile rules in the source distributions should already do
this.)
 
Testing for symbolic links is hard to do in a portable manner with
/bin/sh's test, as many implementations don't support querying for
them (reasonably enough I guess, since SYSV didn't have them.)
However, there's always perl :-), so the binary bundles of the next
release should behave as you suggest.

--Sigbjorn

Reply via email to