Subject: Re: install-target for /sys/arch/*/conf/Makefile.* ?
To: David Brownlee <abs@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 04/25/2000 17:22:58
>> rm -f /onetbsd
>> ln /netbsd /onetbsd
>> cp netbsd /nnetbsd
>> mv /nnetbsd /netbsd
>
> Functionally identical (just because :)
> ln -f /netbsd /onetbsd
> cp netbsd /nnetbsd
> mv /nnetbsd /netbsd
i was gonna parry with
install -crb netbsd /netbsd
but it seems that (a) install does a rename(2) to the backup name
first, and then a rename of the newly installed file to the target,
(b) there's no easy way to get it to rename it to onetbsd instead of
netbsd.old, and (iii) there's a bug in kdump that causes it to segv on
reading the ktrace file that i used to come up with (a) and (2).
send-pr coming up. :)
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."