8 doc/man/verus-cli/mac/README.txt \
9 zcutil/fetch-params.sh \
10 zcutil/upgrade-agama.sh
12 mv verus-cli/fetch-params.sh verus-cli/fetch-params
13 chmod +x ${KMD_DIR}/fetch-params
14 chmod +x ${KMD_DIR}/verus
15 chmod +x ${KMD_DIR}/verusd
16 chmod +x ${KMD_DIR}/upgrade-agama.sh
18 binaries=("komodo-cli" "komodod")
20 for binary in "${binaries[@]}";
22 # do the work in the destination directory
23 cp src/${binary} ${KMD_DIR}
24 # find the dylibs to copy for komodod
25 DYLIBS=`otool -L ${KMD_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
26 echo "copying ${DYLIBS} to ${KMD_DIR}"
27 # copy the dylibs to the srcdir
28 for dylib in ${DYLIBS}; do cp -rf ${dylib} ${KMD_DIR}; done
31 libraries=("libgcc_s.1.dylib" "libgomp.1.dylib" "libidn2.0.dylib" "libstdc++.6.dylib")
33 for binary in "${libraries[@]}";
35 # find the dylibs to copy for komodod
36 DYLIBS=`otool -L ${KMD_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
37 echo "copying ${DYLIBS} to ${KMD_DIR}"
38 # copy the dylibs to the srcdir
39 for dylib in ${DYLIBS}; do cp -rf ${dylib} ${KMD_DIR}; alllibs+=(${dylib}); done
42 indirectlibraries=("libintl.8.dylib" "libunistring.2.dylib")
44 for binary in "${indirectlibraries[@]}";
46 # Need to undo this for the dylibs when we are done
47 chmod 755 src/${binary}
48 # find the dylibs to copy for komodod
49 DYLIBS=`otool -L ${KMD_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
50 echo "copying indirect ${DYLIBS} to ${KMD_DIR}"
51 # copy the dylibs to the dest dir
52 for dylib in ${DYLIBS}; do cp -rf ${dylib} ${KMD_DIR}; alllibs+=(${dylib}); done
55 for binary in "${binaries[@]}";
57 # modify komodod to point to dylibs
58 echo "modifying ${binary} to use local libraries"
59 for dylib in "${alllibs[@]}"
61 echo "Next lib is ${dylib} "
62 install_name_tool -change ${dylib} @executable_path/`basename ${dylib}` ${KMD_DIR}/${binary}
64 chmod +x ${KMD_DIR}/${binary}
67 for binary in "${libraries[@]}";
69 # modify libraries to point to dylibs
70 echo "modifying ${binary} to use local libraries"
71 for dylib in "${alllibs[@]}"
73 echo "Next lib is ${dylib} "
74 install_name_tool -change ${dylib} @executable_path/`basename ${dylib}` ${KMD_DIR}/${binary}