avoid cp -a: it isn't POSIX defined and don't exist on openbsd (#10133)

replace it by the most similar arguments: cp -PRp
(not copied elements are context,links,xattr)
This commit is contained in:
Sebastien Marie 2018-05-20 00:29:53 +02:00 committed by radare
parent 886c186783
commit 3822f1446e
3 changed files with 3 additions and 3 deletions

View File

@ -155,7 +155,7 @@ windist:
@cp -f libr/bin/d/trx "${WINDIST}/share/radare2/${VERSION}/format"
@cp -f libr/bin/d/dll/*.sdb "${WINDIST}/share/radare2/${VERSION}/format/dll"
@mkdir -p "${WINDIST}/share/radare2/${VERSION}/cons"
@cp -af libr/cons/d/* "${WINDIST}/share/radare2/${VERSION}/cons"
@cp -PRpf libr/cons/d/* "${WINDIST}/share/radare2/${VERSION}/cons"
@mkdir -p "${WINDIST}/share/radare2/${VERSION}/hud"
@cp -f doc/hud "${WINDIST}/share/radare2/${VERSION}/hud/main"
@mv "${WINDIST}" "radare2-${WINBITS}-${VERSION}"

View File

@ -130,6 +130,6 @@ install:
mkdir -p "${DESTDIR}${BINDIR}"
for FILE in r2 ${BINS2} ; do \
rm -f "${DESTDIR}${BINDIR}/$$FILE" ; \
cp -af "$$FILE" "${DESTDIR}${BINDIR}/$$FILE" ; \
cp -PRpf "$$FILE" "${DESTDIR}${BINDIR}/$$FILE" ; \
done

View File

@ -12,7 +12,7 @@ install: ${F_SDB}
mkdir -p "$P"
for FILE in * ; do \
if [ $$FILE != Makefile -a $$FILE != meson.build -a -f $$FILE ]; then \
cp -af "${CWD}/$$FILE" "$P/$$FILE" ; \
cp -PRpf "${CWD}/$$FILE" "$P/$$FILE" ; \
fi ; \
done