From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: use of tar in make install rules Date: Fri, 11 May 2012 17:33:37 -0700 Organization: UCLA Computer Science Department Message-ID: <4FADAFE1.3030605@cs.ucla.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336782833 12643 80.91.229.3 (12 May 2012 00:33:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 May 2012 00:33:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 12 02:33:52 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ST0HQ-0006qR-Ix for ged-emacs-devel@m.gmane.org; Sat, 12 May 2012 02:33:52 +0200 Original-Received: from localhost ([::1]:35698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ST0HP-0001iO-Ow for ged-emacs-devel@m.gmane.org; Fri, 11 May 2012 20:33:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ST0HN-0001iI-8q for emacs-devel@gnu.org; Fri, 11 May 2012 20:33:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ST0HL-0002Ar-MO for emacs-devel@gnu.org; Fri, 11 May 2012 20:33:48 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:44828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ST0HL-0002AF-GN; Fri, 11 May 2012 20:33:47 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id AC4BF39E800C; Fri, 11 May 2012 17:33:38 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1PrQTWXx0WCN; Fri, 11 May 2012 17:33:38 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 4BD45A60007; Fri, 11 May 2012 17:33:38 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150453 Archived-At: 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.