Last active
January 29, 2016 01:24
-
-
Save nastycoder/62d419a113edeb0bb7f7 to your computer and use it in GitHub Desktop.
Install dependancies for building safari extension from command line.
This file contains hidden or 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
#!/bin/bash | |
# install openssl if its not already here | |
brew list $1 > /dev/null 2>&1 | true | |
if [[ ${PIPESTATUS[0]} != 0 ]]; then | |
brew install openssl | |
if [[ $? != 0 ]]; then | |
failure "failed to install openssl!" | |
exit 1 | |
fi | |
fi | |
# force brew linking | |
brew link --force openssl |
This file contains hidden or 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
#!/bin/bash | |
LIB_DIR=/usr/local/lib | |
CURRENT_DIR=`pwd` | |
XAR=xar-1.6.1 | |
cd $LIB_DIR | |
echo "Getting XAR" | |
wget https://github.com/downloads/mackyle/xar/xar-1.6.1.tar.gz | |
echo "Setting up XAR" | |
tar -xzvf $XAR.tar.gz | |
rm $XAR.tar.gz | |
cd $XAR | |
./configure | |
make | |
sudo make install | |
cd $CURRENT_DIR | |
echo "DONE!!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment