Try unrolling makeRelease.sh
This commit is contained in:
@@ -1,17 +1,23 @@
|
|||||||
#!/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
|
||||||
|
|
||||||
binaries=("komodo-cli" "komodod")
|
# modify komodo-cli to point to dylibs
|
||||||
|
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;
|
||||||
|
chmod +x src/komodo-cli
|
||||||
|
#
|
||||||
|
# find the dylibs to copy for komodod
|
||||||
|
DYLIBS=`otool -L src/komodod | 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
|
||||||
|
|
||||||
for binary in "${binaries[@]}";
|
# modify komodod to point to dylibs
|
||||||
do
|
echo "modifying $binary to use local libraries"
|
||||||
# find the dylibs to copy for komodod
|
for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` src/komodod; done;
|
||||||
DYLIBS=`otool -L src/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
chmod +x src/komodod
|
||||||
echo "copying $DYLIBS to $src"
|
|
||||||
# copy the dylibs to the srcdir
|
|
||||||
for dylib in $DYLIBS; do cp -rf $dylib src/; done
|
|
||||||
|
|
||||||
# modify komodod to point to dylibs
|
|
||||||
echo "modifying $binary to use local libraries"
|
|
||||||
for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` src/$binary; done;
|
|
||||||
chmod +x src/$binary
|
|
||||||
done
|
|
||||||
|
|||||||
Reference in New Issue
Block a user