Skip to content

Instantly share code, notes, and snippets.

@yuasatakayuki
Created March 7, 2016 08:26
Show Gist options
  • Save yuasatakayuki/145c6115f1520f8e3c80 to your computer and use it in GitHub Desktop.
Save yuasatakayuki/145c6115f1520f8e3c80 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
HEASOFT_VERSION=6.17
pushd $PREFIX
mkdir heasoft
pushd heasoft
wget http://darts.isas.jaxa.jp/pub/legacy.gsfc.nasa.gov/software/lheasoft/lheasoft${HEASOFT_VERSION}/heasoft-${HEASOFT_VERSION}src.tar.gz
tar zxf heasoft-${HEASOFT_VERSION}src.tar.gz
pushd heasoft-${HEASOFT_VERSION}/BUILD_DIR
./configure --prefix=$PREFIX/heasoft/heasoft-${HEASOFT_VERSION}_install
make
make install
popd
popd
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment