mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
e790549044
commit
001323fc6f
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue