#!/bin/bash if [ ! -f /usr/src/ant-*.zip ]; then echo "Ant zip file is not found at /usr/src/ant-*.zip!!" exit fi if [ ! -f /opt/apache-ant* ]; then unzip /usr/src/ant-*.zip -d /opt mv /opt/apache-ant-* /opt/ant echo "export PATH=/opt/ant/bin/:\$PATH" >> /etc/profile fi