#!/bin/bash cd /ext/env tar zxvf /ext/cmp/scala-*.tgz ln -sf scala-* scala cd /ext/ini cat << EOF > scala.sh export SCALA_HOME=/ext/env/scala if ! echo \$PATH | grep -q scala/bin; then PATH=\$SCALA_HOME/bin:\$PATH fi EOF