8 doc/man/verus-cli/mac/README.txt \
9 zcutil/fetch-params.sh \
11 mv verus-cli/fetch-params.sh verus-cli/fetch-params
12 chmod +x ${KMD_DIR}/fetch-params
13 chmod +x ${KMD_DIR}/verus
14 chmod +x ${KMD_DIR}/verusd
15 chmod +x ${KMD_DIR}/upgrade-agama.sh
17 binaries=("komodo-cli" "komodod")
19 for binary in "${binaries[@]}";
21 # do the work in the destination directory
22 cp src/${binary} ${KMD_DIR}
23 # find the dylibs to copy for komodod
24 DYLIBS=`otool -L ${KMD_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
25 echo "copying ${DYLIBS} to ${KMD_DIR}"
26 # copy the dylibs to the srcdir
27 for dylib in ${DYLIBS}; do cp -rf ${dylib} ${KMD_DIR}; done
30 libraries=("libgcc_s.1.dylib" "libgomp.1.dylib" "libidn2.4.dylib" "libstdc++.6.dylib")
32 for binary in "${libraries[@]}";
34 # find the dylibs to copy for komodod
35 DYLIBS=`otool -L ${KMD_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
36 echo "copying ${DYLIBS} to ${KMD_DIR}"
37 # copy the dylibs to the srcdir
38 for dylib in ${DYLIBS}; do cp -rf ${dylib} ${KMD_DIR}; alllibs+=(${dylib}); done
41 indirectlibraries=("libintl.8.dylib" "libunistring.2.dylib")
43 for binary in "${indirectlibraries[@]}";
45 # Need to undo this for the dylibs when we are done
46 chmod 755 src/${binary}
47 # find the dylibs to copy for komodod
48 DYLIBS=`otool -L ${KMD_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
49 echo "copying indirect ${DYLIBS} to ${KMD_DIR}"
50 # copy the dylibs to the dest dir
51 for dylib in ${DYLIBS}; do cp -rf ${dylib} ${KMD_DIR}; alllibs+=(${dylib}); done
54 for binary in "${binaries[@]}";
56 # modify komodod to point to dylibs
57 echo "modifying ${binary} to use local libraries"
58 for dylib in "${alllibs[@]}"
60 echo "Next lib is ${dylib} "
61 install_name_tool -change ${dylib} @executable_path/`basename ${dylib}` ${KMD_DIR}/${binary}
63 chmod +x ${KMD_DIR}/${binary}
66 for binary in "${libraries[@]}";
68 # modify libraries to point to dylibs
69 echo "modifying ${binary} to use local libraries"
70 for dylib in "${alllibs[@]}"
72 echo "Next lib is ${dylib} "
73 install_name_tool -change ${dylib} @executable_path/`basename ${dylib}` ${KMD_DIR}/${binary}