Commit 23832158 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

add check for required commands

parent 579e2107
......@@ -12,6 +12,17 @@ libstdc++\.so.*
libgcc_s\.so.*
libpcre\.so.*"
# Check dependencies
cmdlist="awk grep ldd patchelf"
for cmd in $cmlist
do
if ! which $cmd > /dev/null
then
echo "Could not find ${cmd}. Is it installed?" > /dev/stderr
exit 1
fi
done
library_in_exclude_list() {
# arg1: library name
# returns 0 if arg1 is found in exclude list, otherwise 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment