mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-26 00:55:59 +00:00
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:
parent
886c186783
commit
3822f1446e
2
Makefile
2
Makefile
@ -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}"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user