On Thu, 15 Jul 2004, Norman Gray wrote:
> Mark,
>
> On Thu, 15 Jul 2004, Mark Taylor wrote:
>
> > (cd /tmp/starconf-6463; cp -R . /)
> > cp: cannot overwrite non-directory `/./mbt/starauto' with directory `./mbt/starauto'
> >
> > since
> >
> > % ls -g /mbt/starauto
> > lrwxrwxrwx 1 root 12 Mar 11 11:59 /mbt/starauto -> /d1/starauto
> >
> > so the 'cp -R' needs to be replaced by something appropriately paranoid
> > presumably involving tar/pax/find. I tracked this down to
> > thirdparty/fsf/automake/lib/am/install.am and thought about fixing
> > it and then chickened out - I expect there's some standard automake
> > way to do this that you have at your fingertips and I don't know about.
>
> Yech. I actually did have a tar/pax version in there, but removed it
> because it was starting to look _very_ ugly, and cp -R started to look
> more attractive. And I think I tested it with the case where the
> top-level directory was a symlink, but not one of the ones lower down --
> drat.
>
> Oddly enough, I don't think there is a standard automake way of
> installing complete trees, but I'll take a second look.
I haven't looked closely at what you're doing here, but my first
reaction is that constructing the whole tree from / in temporary
and copying it to / is going to be more precarious than only
constructing the bit that goes under prefix and copying that to
the prefix directory. But I expect you've got some good reason
for it (which I don't require you to explain...).
Mark
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|