mirror of
https://git.hush.is/hush/hush3.git
synced 2025-12-11 00:07:33 -05:00
fix makeRelease.sh
komodify release script for darwin arch
This commit is contained in:
parent
d80ef46e94
commit
3257a96688
@ -1,29 +1,19 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
KMD_DIR=verus-cli
|
PACKAGE_DIR="$@"
|
||||||
mkdir ${KMD_DIR}
|
mkdir ${PACKAGE_DIR}
|
||||||
|
|
||||||
cp src/fiat/verus \
|
|
||||||
src/verusd \
|
|
||||||
doc/man/verus-cli/mac/README.txt \
|
|
||||||
zcutil/fetch-params.sh \
|
|
||||||
verus-cli
|
|
||||||
mv verus-cli/fetch-params.sh verus-cli/fetch-params
|
|
||||||
chmod +x ${KMD_DIR}/fetch-params
|
|
||||||
chmod +x ${KMD_DIR}/verus
|
|
||||||
chmod +x ${KMD_DIR}/verusd
|
|
||||||
|
|
||||||
binaries=("komodo-cli" "komodod")
|
binaries=("komodo-cli" "komodod")
|
||||||
alllibs=()
|
alllibs=()
|
||||||
for binary in "${binaries[@]}";
|
for binary in "${binaries[@]}";
|
||||||
do
|
do
|
||||||
# do the work in the destination directory
|
# do the work in the destination directory
|
||||||
cp src/${binary} ${KMD_DIR}
|
cp src/${binary} ${PACKAGE_DIR}
|
||||||
# find the dylibs to copy for komodod
|
# find the dylibs to copy for komodod
|
||||||
DYLIBS=`otool -L ${KMD_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
DYLIBS=`otool -L ${PACKAGE_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
||||||
echo "copying ${DYLIBS} to ${KMD_DIR}"
|
echo "copying ${DYLIBS} to ${PACKAGE_DIR}"
|
||||||
# copy the dylibs to the srcdir
|
# copy the dylibs to the srcdir
|
||||||
for dylib in ${DYLIBS}; do cp -rf ${dylib} ${KMD_DIR}; done
|
for dylib in ${DYLIBS}; do cp -rf ${dylib} ${PACKAGE_DIR}; done
|
||||||
done
|
done
|
||||||
|
|
||||||
libraries=("libgcc_s.1.dylib" "libgomp.1.dylib" "libidn2.0.dylib" "libstdc++.6.dylib")
|
libraries=("libgcc_s.1.dylib" "libgomp.1.dylib" "libidn2.0.dylib" "libstdc++.6.dylib")
|
||||||
@ -31,10 +21,10 @@ libraries=("libgcc_s.1.dylib" "libgomp.1.dylib" "libidn2.0.dylib" "libstdc++.6.d
|
|||||||
for binary in "${libraries[@]}";
|
for binary in "${libraries[@]}";
|
||||||
do
|
do
|
||||||
# find the dylibs to copy for komodod
|
# find the dylibs to copy for komodod
|
||||||
DYLIBS=`otool -L ${KMD_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
DYLIBS=`otool -L ${PACKAGE_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
||||||
echo "copying ${DYLIBS} to ${KMD_DIR}"
|
echo "copying ${DYLIBS} to ${PACKAGE_DIR}"
|
||||||
# copy the dylibs to the srcdir
|
# copy the dylibs to the srcdir
|
||||||
for dylib in ${DYLIBS}; do cp -rf ${dylib} ${KMD_DIR}; alllibs+=(${dylib}); done
|
for dylib in ${DYLIBS}; do cp -rf ${dylib} ${PACKAGE_DIR}; alllibs+=(${dylib}); done
|
||||||
done
|
done
|
||||||
|
|
||||||
indirectlibraries=("libintl.8.dylib" "libunistring.2.dylib")
|
indirectlibraries=("libintl.8.dylib" "libunistring.2.dylib")
|
||||||
@ -44,10 +34,10 @@ do
|
|||||||
# Need to undo this for the dylibs when we are done
|
# Need to undo this for the dylibs when we are done
|
||||||
chmod 755 src/${binary}
|
chmod 755 src/${binary}
|
||||||
# find the dylibs to copy for komodod
|
# find the dylibs to copy for komodod
|
||||||
DYLIBS=`otool -L ${KMD_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
DYLIBS=`otool -L ${PACKAGE_DIR}/${binary} | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
||||||
echo "copying indirect ${DYLIBS} to ${KMD_DIR}"
|
echo "copying indirect ${DYLIBS} to ${PACKAGE_DIR}"
|
||||||
# copy the dylibs to the dest dir
|
# copy the dylibs to the dest dir
|
||||||
for dylib in ${DYLIBS}; do cp -rf ${dylib} ${KMD_DIR}; alllibs+=(${dylib}); done
|
for dylib in ${DYLIBS}; do cp -rf ${dylib} ${PACKAGE_DIR}; alllibs+=(${dylib}); done
|
||||||
done
|
done
|
||||||
|
|
||||||
for binary in "${binaries[@]}";
|
for binary in "${binaries[@]}";
|
||||||
@ -57,9 +47,9 @@ do
|
|||||||
for dylib in "${alllibs[@]}"
|
for dylib in "${alllibs[@]}"
|
||||||
do
|
do
|
||||||
echo "Next lib is ${dylib} "
|
echo "Next lib is ${dylib} "
|
||||||
install_name_tool -change ${dylib} @executable_path/`basename ${dylib}` ${KMD_DIR}/${binary}
|
install_name_tool -change ${dylib} @executable_path/`basename ${dylib}` ${PACKAGE_DIR}/${binary}
|
||||||
done
|
done
|
||||||
chmod +x ${KMD_DIR}/${binary}
|
chmod +x ${PACKAGE_DIR}/${binary}
|
||||||
done
|
done
|
||||||
|
|
||||||
for binary in "${libraries[@]}";
|
for binary in "${libraries[@]}";
|
||||||
@ -69,8 +59,6 @@ do
|
|||||||
for dylib in "${alllibs[@]}"
|
for dylib in "${alllibs[@]}"
|
||||||
do
|
do
|
||||||
echo "Next lib is ${dylib} "
|
echo "Next lib is ${dylib} "
|
||||||
install_name_tool -change ${dylib} @executable_path/`basename ${dylib}` ${KMD_DIR}/${binary}
|
install_name_tool -change ${dylib} @executable_path/`basename ${dylib}` ${PACKAGE_DIR}/${binary}
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user