Skip to content

Instantly share code, notes, and snippets.

@yuasatakayuki
Last active March 7, 2016 05:07
Show Gist options
  • Select an option

  • Save yuasatakayuki/d403f3791288697d6b5c to your computer and use it in GitHub Desktop.

Select an option

Save yuasatakayuki/d403f3791288697d6b5c 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 CCSDSLibrary SMCPLibrary; 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