mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
Added more MacOS tools
This commit is contained in:
parent
7ad616d62b
commit
106e0ada80
14
macos/get_library_path.sh
Normal file
14
macos/get_library_path.sh
Normal file
@ -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))
|
14
macos/search_rpath.sh
Normal file
14
macos/search_rpath.sh
Normal file
@ -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))
|
Loading…
Reference in New Issue
Block a user