emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use of tar in make install rules


From: Paul Eggert
Subject: Re: use of tar in make install rules
Date: Fri, 11 May 2012 17:33:37 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 05/11/2012 12:30 PM, Glenn Morris wrote:
Please don't tell me that cp -R isn't portable...

Well, you didn't want me to tell you, but ....

  cp -R is not portable.

cp -R wasn't standardized by POSIX until the 2008 edition
(a long story -- older POSIX specified "cp -r",
but it didn't take).  So it's possible that
there are still systems in active use where "cp -R"
does not work well enough.

It would probably be safe to do "cp -R src dest || tar ...", i.e.,
to fall back on 'tar' only if 'cp -R' does not work.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]