Undo makeRelase.sh changes. Hacked libs in directly.

This commit is contained in:
David Dawes
2018-06-10 00:00:49 -07:00
parent 19546c8f9a
commit f60687ca92

View File

@@ -1,23 +1,17 @@
#!/bin/sh #!/bin/sh
# find the dylibs to copy for komodo-cli
DYLIBS=`otool -L src/komodo-cli | grep "/usr/local" | awk -F' ' '{ print $1 }'`
echo "copying $DYLIBS to $src"
# copy the dylibs to the srcdir
for dylib in $DYLIBS; do cp -rf $dylib src/; done
# modify komodo-cli to point to dylibs binaries=("komodo-cli" "komodod")
echo "modifying $binary to use local libraries"
for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` src/komodo-cli; done; for binary in "${binaries[@]}";
chmod +x src/komodo-cli do
#
# find the dylibs to copy for komodod # find the dylibs to copy for komodod
DYLIBS=`otool -L src/komodod | grep "/usr/local" | awk -F' ' '{ print $1 }'` DYLIBS=`otool -L src/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
echo "copying $DYLIBS to $src" echo "copying $DYLIBS to $src"
# copy the dylibs to the srcdir # copy the dylibs to the srcdir
for dylib in $DYLIBS; do cp -rf $dylib src/; done for dylib in $DYLIBS; do cp -rf $dylib src/; done
# modify komodod to point to dylibs # modify komodod to point to dylibs
echo "modifying $binary to use local libraries" echo "modifying $binary to use local libraries"
for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` src/komodod; done; for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` src/$binary; done;
chmod +x src/komodod chmod +x src/$binary
done