[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: RPM spec file: using __cp with wildcards
- From: Jos Vos <jos xos nl>
- To: "Red Hat Enterprise Linux 4 (Nahant) Discussion List" <nahant-list redhat com>
- Subject: Re: RPM spec file: using __cp with wildcards
- Date: Tue, 19 Jul 2005 18:41:54 +0200
On Tue, Jul 19, 2005 at 11:29:13AM -0400, Hosey, Chester wrote:
> Running rpmbuild fails because it's escaping arguments passed to 'cp' --
> instead of:
> cp sourcedir/*.ext /var/tmp/dest
> It insists on attempting
> cp 'sourcedir/*.ext' /var/tmp/dest
>
> Obviously cp isn't happy about this.
"cp" does not know about it, the shell won't expand wildcards when
quoted, so "cp" will see the unexpanded arguments.
> Is there an easy way to get rpmbuild to allow the use of wildcards in
> commands in the %install section without escaping everything it's asked
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> to pass on to the command line? Is the spec file incorrect? Do I need to
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> rewrite it to explicitly mention every file to be copied?
I do not really understand what the marked text is trying to say, but if
cp 'sourcedir/*.ext' /var/tmp/dest
is really in the spec file, the spec file is definitely wrong.
--
-- Jos Vos <jos xos nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]