You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
675 B
27 lines
675 B
#!/bin/sh
|
|
set -eu
|
|
|
|
version_ant=1.9.16
|
|
|
|
dir_download="$PWD/download"
|
|
dir_files="$PWD/files"
|
|
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"
|
|
patch -p1 -i "$dir_files/apache-ant-1.9.16-fix-java4.patch"
|
|
|
|
# Avoid weird out-of-memory error on a modern minipc of mine...
|
|
sed -e '/<format property="year" pattern="yyyy"\/>/d' \
|
|
-e '/tstamp>/d' \
|
|
-i build.xml
|
|
|
|
# Build and install
|
|
unset JAVAC JAVACMD CLASSPATH
|
|
export JAVA_HOME="$PWD/../install-gcc/lib/jvm"
|
|
export PATH="$JAVA_HOME/bin:$PATH"
|
|
export BOOTJAVAC_OPTS='-nowarn'
|
|
./build.sh
|
|
cp -a dist "$dir_install"
|
|
|