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

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