All of lore.kernel.org
 help / color / mirror / Atom feed
* trouble with cp command in autotools.bbclass
@ 2008-04-01  0:46 Robert Schuster
  2008-04-01  6:47 ` Koen Kooi
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Schuster @ 2008-04-01  0:46 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 862 bytes --]

Hi,
lately the following copy operation has been added to autotools.bbclass:

# Otherwise libtool wasn't used, and lib/ can be copied
# directly.
echo "cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}"
cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}

I have trouble with this and a package that creates an empty ${libdir}.
Shell globbing (*) wont find a file and instead tries to copy a file
named "*" ... and fails and so does my built.

I would like to replace this with the following lines which uses find
and is more robust:

# (The find command handles an empty ${STAGE_TEMP/${libdir} correctly)
echo "find ${STAGE_TEMP}/${libdir} -mindepth 1 -maxdepth 1 -exec cp
-fpPR {} ${STAGING_LIBDIR}" \;

find ${STAGE_TEMP}/${libdir} -mindepth 1 -maxdepth 1 -exec cp -fpPR {}
${STAGING_LIBDIR} \;

Ok for commit?

Regards
Robert


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-02 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-01  0:46 trouble with cp command in autotools.bbclass Robert Schuster
2008-04-01  6:47 ` Koen Kooi
2008-04-02 23:08   ` Robert Schuster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.