Skip to content

Commit

Permalink
darwin.sh: don't use -u flag on cp
Browse files Browse the repository at this point in the history
.. as darwin itself doesn't understand it
  • Loading branch information
mingwandroid committed Jul 15, 2014
1 parent d2cd356 commit 2a31ef6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/build/kernel/darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ do_kernel_extract_minimal() {
for DST_INCLUDE in ${DST_INCLUDE_FOLDERS[@]}; do
[ ! -d $DST_INCLUDE/$(dirname $SYSHDR) ] && mkdir -p $DST_INCLUDE/$(dirname $SYSHDR)
CT_DoExecLog ALL \
cp -R -p -u $_SRC/usr/include/$SYSHDR $DST_INCLUDE/$(dirname $SYSHDR)
cp -R -p $_SRC/usr/include/$SYSHDR $DST_INCLUDE/$(dirname $SYSHDR)
done
done

Expand All @@ -115,7 +115,7 @@ do_kernel_extract_minimal() {
CT_DoExecLog ALL \
mkdir -p $(dirname "${DSTDIR}")
CT_DoExecLog ALL \
cp -Rf -u "${_SRC}/usr/include/c++/${CXX_INCLUDE}" "${DSTDIR}"
cp -Rf "${_SRC}/usr/include/c++/${CXX_INCLUDE}" "${DSTDIR}"
done

# libs needed:
Expand All @@ -128,21 +128,21 @@ do_kernel_extract_minimal() {
# Some redundancy here. Probably only the 2nd block is needed but it won't really hurt to do
# both.
mkdir usr/lib
cp -fR -u $_SRC/usr/lib/system usr/lib/
cp -fR $_SRC/usr/lib/system usr/lib/
find usr/lib/ -type d -exec chmod u+w {} \;
cp -f -u $_SRC/usr/lib/libc.dylib usr/lib/
cp -f -u $_SRC/usr/lib/dylib1.o usr/lib/
cp -f $_SRC/usr/lib/libc.dylib usr/lib/
cp -f $_SRC/usr/lib/dylib1.o usr/lib/
# Not sure what the difference is between
# crt1.o (not made by the build process?!?)
# and crt3.o (made by the build process) is.
# TODO :: Figure out the score on OS X.
cp -f -u $_SRC/usr/lib/crt1.o usr/lib/
cp -f $_SRC/usr/lib/crt1.o usr/lib/

mkdir -p $_TARGET/lib
cp -fR -u $_SRC/usr/lib/system $_TARGET/lib/
cp -fR $_SRC/usr/lib/system $_TARGET/lib/
find $_TARGET/lib/ -type d -exec chmod u+w {} \;
cp -f -u $_SRC/usr/lib/libc.dylib $_TARGET/lib/system/
cp -f -u $_SRC/usr/lib/dylib1.o $_TARGET/lib/system/
cp -f $_SRC/usr/lib/libc.dylib $_TARGET/lib/system/
cp -f $_SRC/usr/lib/dylib1.o $_TARGET/lib/system/

CT_Popd

Expand Down

0 comments on commit 2a31ef6

Please sign in to comment.