mirror of
				https://git.hush.is/hush/hush3.git
				synced 2025-11-03 00:10:36 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			568 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			568 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
binaries=("komodo-cli" "komodod")
 | 
						|
 | 
						|
for binary in "${binaries[@]}";
 | 
						|
do
 | 
						|
    # find the dylibs to copy for komodod
 | 
						|
    DYLIBS=`otool -L src/$binary | 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 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
 |