Skip to content

Instantly share code, notes, and snippets.

@yuasatakayuki
Created March 8, 2016 01:09
Show Gist options
  • Save yuasatakayuki/7befd5702be2772e9cee to your computer and use it in GitHub Desktop.
Save yuasatakayuki/7befd5702be2772e9cee to your computer and use it in GitHub Desktop.
#!/bin/bash
PREFIX=$HOME/work/install
cd $HOME
if [ ! -d $PREFIX ]; then
mkdir -p $PREFIX
fi
for LIBRARY_NAME in HongoScripts; do
pushd $PREFIX
rm -rf ${LIBRARY_NAME}
git clone https://github.com/yuasatakayuki/${LIBRARY_NAME}.git
pushd ${LIBRARY_NAME}
mkdir build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
sudo make install
popd
popd
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment