#!/bin/bash
#
# Script that install GrADS, version 1.9b4
#
# By P', july/2008
# some variables
gradspack="ftp://cola.gmu.edu/grads/1.9/grads-1.9b4-linuxRH7.1.tar.gz"
datapack="ftp://cola.gmu.edu/grads/data.tar.Z"
DIR=$PWD
mkdir -p grads/data
cd $DIR/grads/data
wget -c $datapack
tar zxf data.tar.Z
cd $DIR/grads
wget -c $gradspack
tar zxf "grads-1.9b4-linuxRH7.1.tar.gz"
ln -s grads-1.9b4/bin
cd $DIR/grads/bin
ln -s gradsc grads
cd $DIR
echo >> ~/.bashrc
echo '# Configuration performed by grads-inst.sh' >> ~/.bashrc
echo 'export PATH='$DIR'/grads/bin:$PATH' >> ~/.bashrc
echo 'export GADDIR='$DIR'/grads/data' >> ~/.bashrc
echo 'export GASCRP='$DIR'/grads/lib' >> ~/.bashrc
echo
echo "IMPORTANT: please CLOSE and REOPEN all terminal windows!"
echo
https://blog.sciencenet.cn/blog-569118-612493.html
上一篇:
Install NCO on CentOS下一篇:
科学网的字体怎么设置的,怎么一堆乱码?