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 974 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. ANT_HOME=bootstrap
  17. export ANT_HOME
  18. if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
  19. /bin/sh ./bootstrap.sh
  20. fi
  21. if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
  22. echo Bootstrap FAILED
  23. exit
  24. fi
  25. if [ "$REALANTHOME" != "" ] ; then
  26. if $cygwin; then
  27. REALANTHOME=`cygpath --path --windows "$REALANTHOME"`
  28. fi
  29. ANT_INSTALL="-Dant.install=$REALANTHOME"
  30. else
  31. ANT_INSTALL="-emacs"
  32. fi
  33. bootstrap/bin/ant -lib lib/optional "$ANT_INSTALL" $*