Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2014 15:35:09 +0200
From:      Pawel Pekala <pawel@FreeBSD.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Dnia 2014-07-05, o godz. 12:04:57
Mikolaj Golub <trociny@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140706153509.2d9dead2>