#!/bin/sh set -eu version_ant=1.9.13 dir_download="$PWD/download" mkdir -p build; cd build dir_install="$PWD/install-ant" # Prepare source tar xf "$dir_download/apache-ant-$version_ant-src.tar.bz2" cd "apache-ant-$version_ant" # Build and install unset JAVAC JAVACMD CLASSPATH export JAVA_HOME="$PWD/../install-gcc/lib/jvm" export PATH="$JAVA_HOME/bin:$PATH" ./build.sh cp -a dist "$dir_install"