tarball script: use gcp when cp isn't GNU cp

git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_6@26529 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-06-03 20:58:37 +00:00
parent e790549044
commit 001323fc6f

View file

@ -18,7 +18,12 @@ rbdir=$tempdir/rockbox-$version
mkdir -p $rbdir
# copy everything to the temp dir
svn ls -R | xargs -Imoo cp --parents moo $rbdir 2>/dev/null
# Only GNU cp accepts --long-options (and --parents)
# If the system cp is POSIX cp, try gcp (works on OSX)
CP=cp
$CP --help >/dev/null 2>&1 || CP=gcp
svn ls -R | xargs -Imoo $CP --parents moo $rbdir 2>/dev/null
cd $tempdir