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.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/sh
  2. # Copyright (c) 2000-2002 The Apache Software Foundation. All rights
  3. # reserved.
  4. cygwin=false;
  5. case "`uname`" in
  6. CYGWIN*) cygwin=true ;;
  7. esac
  8. REALANTHOME=$ANT_HOME
  9. ANT_HOME=bootstrap
  10. export ANT_HOME
  11. if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
  12. /bin/sh ./bootstrap.sh
  13. fi
  14. if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
  15. echo Bootstrap FAILED
  16. exit
  17. fi
  18. LOCALCLASSPATH=lib/xercesImpl.jar:lib/xmlParserAPIs.jar
  19. # add in the dependency .jar files
  20. DIRLIBS=lib/optional/*.jar
  21. for i in ${DIRLIBS}
  22. do
  23. if [ "$i" != "${DIRLIBS}" ] ; then
  24. LOCALCLASSPATH=$LOCALCLASSPATH:"$i"
  25. fi
  26. done
  27. # make sure the classpath is in unix format
  28. if $cygwin ; then
  29. CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
  30. fi
  31. CLASSPATH=$LOCALCLASSPATH:$CLASSPATH
  32. # switch back to Windows format
  33. if $cygwin ; then
  34. CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
  35. fi
  36. export CLASSPATH
  37. if [ "$REALANTHOME" != "" ] ; then
  38. ANT_INSTALL="-Dant.install=$REALANTHOME"
  39. fi
  40. bootstrap/bin/ant -emacs $ANT_INSTALL $*