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 ${DIST_DIR}/fetch-params
13 chmod +x ${DIST_DIR}/verus
14 chmod +x ${DIST_DIR}/verusd
16 binaries=("verus" "verusd")
18 for binary in "${binaries[@]}";
20 # do the work in the destination directory
21 cp src/${binary} ${DIST_DIR}
22 # find the dylibs to copy for verusd
23 DYLIBS=`otool -L ${DIST_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
24 DYLIBS+=" /usr/local/opt/libidn2/lib/libidn2.0.dylib"
25 echo "copying ${DYLIBS} to ${DIST_DIR}"
26 # copy the dylibs to the srcdir
27 for dylib in ${DYLIBS}; do cp -rf ${dylib} ${DIST_DIR}; done
30 libraries=("libgcc_s.1.dylib" "libgomp.1.dylib" "libidn2.0.dylib" "libstdc++.6.dylib")
32 for binary in "${libraries[@]}";
34 # find the dylibs to copy for verusd
35 DYLIBS=`otool -L ${DIST_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
36 echo "copying ${DYLIBS} to ${DIST_DIR}"
37 # copy the dylibs to the srcdir
38 for dylib in ${DYLIBS}; do cp -rf ${dylib} ${DIST_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 ${DIST_DIR}/${binary}
47 # find the dylibs to copy for verusd
48 DYLIBS=`otool -L ${DIST_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
49 echo "copying indirect ${DYLIBS} to ${DIST_DIR}"
50 # copy the dylibs to the dest dir
51 for dylib in ${DYLIBS}; do cp -rf ${dylib} ${DIST_DIR}; alllibs+=(${dylib}); done
54 for binary in "${binaries[@]}";
56 # modify verusd 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}` ${DIST_DIR}/${binary}
63 chmod +x ${DIST_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}` ${DIST_DIR}/${binary}