Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

build.sh 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/sh
  2. # This file should be executable.
  3. echo
  4. echo "Apache FOP: Build System"
  5. echo "--------------------------"
  6. echo
  7. if [ "$JAVA_HOME" = "" ] ; then
  8. echo "ERROR: JAVA_HOME not found in your environment."
  9. echo
  10. echo "Please, set the JAVA_HOME variable in your environment to match the"
  11. echo "location of the Java Virtual Machine you want to use."
  12. exit 1
  13. fi
  14. if [ "$ANT_HOME" = "" ] ; then
  15. echo "ERROR: ANT_HOME not found in your environment."
  16. echo
  17. echo "Please install Apache Ant first. FOP uses Ant as its build system."
  18. echo "You can download Apache Ant from http://ant.apache.org"
  19. echo "1. Download and install Ant"
  20. echo "2. Set the ANT_HOME environment variable to the directory where you've"
  21. echo " placed Ant."
  22. echo "3. Add "\$ANT_HOME/bin" to your PATH so the "ant" script file"
  23. echo " can be be executed from wherever needed."
  24. echo "4. (optional) Download JUnit and place junit-*.jar in \$ANT_HOME/lib."
  25. echo " This enables the JUnit test cases."
  26. exit 1
  27. fi
  28. # OS specific support. $var _must_ be set to either true or false.
  29. cygwin=false;
  30. case "`uname`" in
  31. CYGWIN*) cygwin=true ;;
  32. esac
  33. # For Cygwin, ensure paths are in UNIX format before anything is touched
  34. if $cygwin ; then
  35. [ -n "$ANT_HOME" ] &&
  36. ANT_HOME=`cygpath --unix "$ANT_HOME"`
  37. fi
  38. "$ANT_HOME"/bin/ant "$@"