buildAndInstall.sh 450 Bytes
#!/bin/sh

INSTALL_DIR=/opt/local

gzip -d cspice.tar.Z
tar xfv     cspice.tar

cd cspice

./makeall.csh

sudo mkdir $INSTALL_DIR/lib/cspice
sudo cp lib/* $INSTALL_DIR/lib/cspice/
sudo ln -s $INSTALL_DIR/lib/cspice/cspice.a $INSTALL_DIR/lib/libcspice.a
sudo ln -s $INSTALL_DIR/lib/cspice/csupport.a $INSTALL_DIR/lib/libcsupport.a

sudo cp exe/* $INSTALL_DIR/bin/

sudo mkdir $INSTALL_DIR/include/cspice
sudo cp include/* $INSTALL_DIR/include/cspice/