reinhard d32780a46b Ant is a Java based build tool. In theory it is kind of like make
without make's wrinkles.

MAINTAINER=     Felix Kronlage <fkr@grummel.net>
2001-06-17 12:15:48 +00:00

46 lines
1.0 KiB
Plaintext

$OpenBSD: patch-bin_ant,v 1.1.1.1 2001/06/17 12:15:52 reinhard Exp $
--- bin/ant Sun Apr 15 17:35:15 2001
+++ bin/ant2 Sun Apr 15 17:37:27 2001
@@ -21,14 +21,7 @@ if $cygwin; then
fi
if [ "$ANT_HOME" = "" ] ; then
- # try to find ANT
- if [ -d /opt/ant ] ; then
- ANT_HOME=/opt/ant
- fi
-
- if [ -d ${HOME}/opt/ant ] ; then
- ANT_HOME=${HOME}/opt/ant
- fi
+ ANT_HOME=_anthome_
## resolve links - $0 may be a link to ant's home
PRG=$0
@@ -48,6 +41,16 @@ if [ "$ANT_HOME" = "" ] ; then
fi
+# trying to find ANT_LIBS
+if [ "$ANT_LIBS" = "" ] ; then
+ # try to find ANT
+ if [ -d _antlibs_ ] ; then
+ ANT_LIBS=_antlibs_
+ fi
+ else
+ echo "ANT_LIBS was not found."
+fi
+
if [ "$JAVA_HOME" != "" ] ; then
if [ "$JAVACMD" = "" ] ; then
JAVACMD=$JAVA_HOME/bin/java
@@ -59,7 +62,7 @@ else
fi
# add in the dependency .jar files
-DIRLIBS=${ANT_HOME}/lib/*.jar
+DIRLIBS=${ANT_LIBS}/*.jar
for i in ${DIRLIBS}
do
# if the directory is empty, then it will return the input string