kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
Added more MacOS tools
rodzic
7ad616d62b
commit
106e0ada80
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Options
|
||||
WANTED_LIB=$1
|
||||
EXEC=$2
|
||||
|
||||
# Function to extract the first element of a space seperated list
|
||||
get_first_arg() {
|
||||
echo $1
|
||||
}
|
||||
|
||||
# Get current path
|
||||
echo $(get_first_arg $(otool -L $EXEC | grep $WANTED_LIB))
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Options
|
||||
RPATH_NAME=$1
|
||||
EXEC=$2
|
||||
|
||||
# Function to keep only the second arg
|
||||
get_second_arg() {
|
||||
echo $2
|
||||
}
|
||||
|
||||
# Get current rpath
|
||||
echo $(get_second_arg $(otool -l $EXEC | grep $RPATH_NAME | grep path))
|
Ładowanie…
Reference in New Issue