Help message
This commit is contained in:
parent
b5f647656a
commit
bf1e23359a
|
@ -1,11 +1,13 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
#set -o pipefail # bash extension
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ -z "${1}" ] ; then
|
if [ -z "${1}" ] ; then
|
||||||
echo "$0 <path-elf> <path-to-copy-libraries>"
|
echo "$0 <ELF_SRC_PATH> <PATH_TO_COPY_LIBRARIES>"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
if [ -z "${2}" ] ; then
|
if [ -z "${2}" ] ; then
|
||||||
echo "$0 <path-elf> <path-to-copy-libraries>"
|
echo "$0 <ELF_SRC_PATH> <PATH_TO_COPY_LIBRARIES>"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
libs="$(ldd "${1}" | grep -F '/' | sed -E 's|[^/]*/([^ ]+).*?|/\1|')"
|
libs="$(ldd "${1}" | grep -F '/' | sed -E 's|[^/]*/([^ ]+).*?|/\1|')"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user