Created
September 16, 2012 10:52
-
-
Save gtuckerkellogg/3731965 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TrueCrypt 7.1 is incompatible with Homebrew, largely because it | |
# hardcodes some osxfuse libs in /usr/local/lib. A tedious solutions | |
# was outlined in | |
# https://github.com/mxcl/homebrew/pull/10183#commitcomment-1425634, | |
# which I've modified ever so slightly | |
MV="/bin/mv -f" | |
RM="/bin/rm" | |
ULL=/usr/local/lib | |
cd $ULL | |
TC_LIB=/Applications/TrueCrypt.app/Contents/Resources/Library | |
mkdir $TC_LIB | |
mkdir $TC_LIB/pkgconfig | |
$MV libosxfuse_i32.2.dylib $TC_LIB | |
$MV libosxfuse_i64.2.dylib $TC_LIB | |
$MV libosxfuse_i64.la $TC_LIB | |
$MV libmacfuse_i64.2.dylib $TC_LIB | |
$MV libmacfuse_i32.2.dylib $TC_LIB | |
$MV libosxfuse_i32.la $TC_LIB | |
$RM libfuse.0.dylib | |
ln -s ${TC_LIB}/libosxfuse_i32.2.dylib libfuse.0.dylib | |
$RM libfuse.2.dylib | |
ln -s ${TC_LIB}/libmacfuse_i32.2.dylib libfuse.2.dylib | |
$RM libfuse.dylib | |
ln -s ${TC_LIB}/libmacfuse_i32.2.dylib libfuse.dylib | |
$RM libfuse_ino64.2.dylib | |
ln -s ${TC_LIB}/libmacfuse_i64.2.dylib libfuse_ino64.2.dylib | |
$RM libfuse_ino64.dylib | |
ln -s ${TC_LIB}/libmacfuse_i64.2.dylib libfuse_ino64.dylib | |
$RM libmacfuse_i32.dylib | |
ln -s ${TC_LIB}/libmacfuse_i32.2.dylib libmacfuse_i32.dylib | |
$RM libmacfuse_i64.dylib | |
ln -s ${TC_LIB}/libmacfuse_i64.2.dylib libmacfuse_i64.dylib | |
$RM libosxfuse.2.7.3.dylib | |
ln -s ${TC_LIB}/libosxfuse_i64.2.dylib libosxfuse.2.7.3.dylib | |
$RM libosxfuse.2.dylib | |
ln -s ${TC_LIB}/libosxfuse_i64.2.dylib libosxfuse.2.dylib | |
$RM libosxfuse.dylib | |
ln -s ${TC_LIB}/libosxfuse_i64.2.dylib libosxfuse.dylib | |
$RM libosxfuse.la | |
ln -s ${TC_LIB}/libosxfuse_i64.la libosxfuse.la | |
$RM libosxfuse_i32.2.7.3.dylib | |
ln -s ${TC_LIB}/libosxfuse_i32.2.dylib libosxfuse_i32.2.7.3.dylib | |
$RM libosxfuse_i32.dylib | |
ln -s ${TC_LIB}/libosxfuse_i32.2.dylib libosxfuse_i32.dylib | |
$RM libosxfuse_i64.2.7.3.dylib | |
ln -s ${TC_LIB}/libosxfuse_i64.2.dylib libosxfuse_i64.2.7.3.dylib | |
$RM libosxfuse_i64.dylib | |
ln -s ${TC_LIB}/libosxfuse_i64.2.dylib libosxfuse_i64.dylib | |
$RM libosxfuse_i32.2.dylib | |
$RM libosxfuse_i64.2.dylib | |
$RM libosxfuse_i64.la | |
$RM libmacfuse_i64.2.dylib | |
$RM libmacfuse_i32.2.dylib | |
$RM libosxfuse_i32.la | |
ln -s ${TC_LIB}/libosxfuse_i32.2.dylib libosxfuse_i32.2.dylib | |
ln -s ${TC_LIB}/libosxfuse_i64.2.dylib libosxfuse_i64.2.dylib | |
ln -s ${TC_LIB}/libosxfuse_i64.la libosxfuse_i64.la | |
ln -s ${TC_LIB}/libmacfuse_i64.2.dylib libmacfuse_i64.2.dylib | |
ln -s ${TC_LIB}/libmacfuse_i32.2.dylib libmacfuse_i32.2.dylib | |
ln -s ${TC_LIB}/libosxfuse_i32.la libosxfuse_i32.la | |
$MV pkgconfig/osxfuse.pc ${TC_LIB}/pkgconfig | |
ln -s ${TC_LIB}/pkgconfig/osxfuse.pc pkgconfig/osxfuse.pc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your script.
It is what I want to find :)