You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.sh 1.0 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/sh
  2. # Copyright (c) 2000-2003 The Apache Software Foundation. All rights
  3. # reserved.
  4. # OS specific support. $var _must_ be set to either true or false.
  5. cygwin=false;
  6. darwin=false;
  7. case "`uname`" in
  8. CYGWIN*) cygwin=true ;;
  9. Darwin*) darwin=true
  10. if [ -z "$JAVA_HOME" ] ; then
  11. JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
  12. fi
  13. ;;
  14. esac
  15. REALANTHOME=$ANT_HOME
  16. if [ -z "$PWD" ]; then
  17. ANT_HOME=./bootstrap
  18. else
  19. ANT_HOME="$PWD"/bootstrap
  20. fi
  21. export ANT_HOME
  22. if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
  23. /bin/sh ./bootstrap.sh
  24. fi
  25. if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
  26. echo Bootstrap FAILED
  27. exit
  28. fi
  29. if [ "$REALANTHOME" != "" ] ; then
  30. if $cygwin; then
  31. REALANTHOME=`cygpath --windows "$REALANTHOME"`
  32. fi
  33. ANT_INSTALL="-Dant.install=$REALANTHOME"
  34. else
  35. ANT_INSTALL="-emacs"
  36. fi
  37. bootstrap/bin/ant -lib lib/optional "$ANT_INSTALL" $*