From owner-freebsd-ports@FreeBSD.ORG Sun Jul 6 13:36:41 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D03F6240 for ; Sun, 6 Jul 2014 13:36:41 +0000 (UTC) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 69A46228A for ; Sun, 6 Jul 2014 13:36:41 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id b13so3218499wgh.11 for ; Sun, 06 Jul 2014 06:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=NoxrsBLLF9RKxmvdelc7+LjhnvV0sOn2LIks6VAxIFo=; b=ZaA0TxA0Vlpk7MViKIWCvtMCYqucm3RIrCqEBsehzygP7zVlEKR9Ev6k+3VDULL5ix aKah3aRg+w3J8a1SvbnQ7lHHqHkLyVk7N+RUKdVdXgg7TXf3hdxPBfozPkoMN3NN1hic 951gRTCEnXbP+maKNXG7RpIJvwCaxe7coKs/U2U9aJHRgbUhs2Rqroe0OFJR2vsWQ1Iy eQR/CgDxHAWG+Q2t45RRQYr267T7+OsHwjXeyqhoMym0W1LlUAmZotID55yq45C3z5+e FO08uN1cDtb11jPpnd6O6Iy1gN72msHwouMZ1Y3KJ37agGYpGHOSTMvTayT9SMnewkK2 yt+g== X-Received: by 10.194.78.141 with SMTP id b13mr134753wjx.111.1404653799468; Sun, 06 Jul 2014 06:36:39 -0700 (PDT) Received: from localhost ([176.109.164.5]) by mx.google.com with ESMTPSA id kp5sm82592279wjb.30.2014.07.06.06.36.38 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 06 Jul 2014 06:36:38 -0700 (PDT) Sender: =?UTF-8?B?UGF3ZcWCIFDEmWthbGE=?= Date: Sun, 6 Jul 2014 15:35:09 +0200 From: Pawel Pekala To: freebsd-ports@freebsd.org Subject: Re: COPYTREE_BIN/COPYTREE_SHARE does not work as expected Message-ID: <20140706153509.2d9dead2@FreeBSD.org> In-Reply-To: <20140705120457.GA1772@gmail.com> References: <20140705120457.GA1772@gmail.com> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2014 13:36:41 -0000 Dnia 2014-07-05, o godz. 12:04:57 Mikolaj Golub napisa=B3(a): >Hi, > >It looks like COPYTREE_BIN/COPYTREE_SHARE does not work as it is >documented in bsd.port.mk: > ># Example use:=20 ># cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR} >"! -name *.bak" # ># Installs all directories and files from ${WRKSRC}/doc ># to ${DOCSDIR} except sed backup files. > >If there is a "*.bak" file in . directory (e.g. test.bak), "*.bak" is >expanded to this name, the condition "! -name *.bak" becomes "! -name >test.bak", and other *.bak files are ignored. > >Worse, if there are several "*.bak" files, "*.bak" is expanded to the >list and COPYTREE_SHARE fails. I made a mistake while documenting this macros, as '*' is a shell wildcard it should be quoted. I believe the correct example should be: cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR} "! -name "*.bak"" --=20 pozdrawiam / with regards Pawe=B3 P=EAkala