Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fix_links.sh - github.com/mono/sharpsvn-binary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9b9f929200f36f74aad89c10596bbefa6eb8c376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# This script is used to make dylibs installed for /usr/local be portable.

# Change this to be the path to the dylibs.
LIBRARY_DIR=mac

pushd $LIBRARY_DIR
for i in *; do
	install_name_tool -id "$i" "$i"
	for j in *; do
		test "$i" == "$j" && continue
		install_name_tool -change "/usr/local/lib/$j" "@loader_path/$j" "$i"
	done
done
popd