]> Git Repo - VerusCoin.git/blame - makeDistrib.sh
Merge pull request #562 from jl777/jl777
[VerusCoin.git] / makeDistrib.sh
CommitLineData
112dc7b1
JB
1#!/bin/sh
2
3TMP_DIR=~/tmp/komodo
4
5# make a tmp directory
6mkdir -p $TMP_DIR
7echo "making $TMP_DIR"
8
9binaries=("komodo-cli" "komodod")
10
11for binary in "${binaries[@]}";
12do
13 echo "copying $binary to $TMP_DIR"
14
15 cp src/$binary $TMP_DIR
16
17 # find the dylibs to copy for komodod
18 DYLIBS=`otool -L $TMP_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
19 echo "copying $DYLIBS to $TMP_DIR"
20
21 # copy the dylibs to the tmpdir
22 for dylib in $DYLIBS; do cp -rf $dylib $TMP_DIR/; done
23
24 # modify komodod to point to dylibs
25 echo "modifying $binary to use local libraries"
26 for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` $TMP_DIR/$binary; done;
27done
28
29
30
31
32
33
34
35
This page took 0.067191 seconds and 4 git commands to generate.