File: framewk.sh

package info (click to toggle)
scorched3d 44%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 112,412 kB
  • sloc: cpp: 135,965; xml: 36,739; makefile: 4,715; sh: 3,172; ansic: 1,407; perl: 541; java: 209; python: 188; sql: 159
file content (16 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

binary=$1

fwks=`otool -L $binary | awk '{if (/Library/ && !/System/) print $1; };'`;

for f in $fwks; do

org=$f
new=`echo $f | awk '{gsub(/\/Library/, "", $1); print "@executable_path/.." $1;}'`;

echo $org $new

install_name_tool -change $org $new $binary

done