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

build.sh 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/bin/sh
  2. # Copyright 1999-2004 The Apache Software Foundation
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # $Id$
  17. # This file should be executable.
  18. echo
  19. echo "Apache FOP: Build System for MathML extension"
  20. echo "-----------------------------------------------"
  21. echo
  22. if [ "$JAVA_HOME" = "" ] ; then
  23. echo "ERROR: JAVA_HOME not found in your environment."
  24. echo
  25. echo "Please, set the JAVA_HOME variable in your environment to match the"
  26. echo "location of the Java Virtual Machine you want to use."
  27. exit 1
  28. fi
  29. if [ "$ANT_HOME" = "" ] ; then
  30. echo "ERROR: ANT_HOME not found in your environment."
  31. echo
  32. echo "Please install Apache Ant first. FOP uses Ant as its build system."
  33. echo "You can download Apache Ant from http://ant.apache.org"
  34. echo "1. Download and install Ant"
  35. echo "2. Set the ANT_HOME environment variable to the directory where you've"
  36. echo " placed Ant."
  37. echo "3. Add "\$ANT_HOME/bin" to your PATH so the "ant" script file"
  38. echo " can be be executed from wherever needed."
  39. echo "4. (optional) Download JUnit and place junit-*.jar in \$ANT_HOME/lib."
  40. echo " This enables the JUnit test cases."
  41. exit 1
  42. fi
  43. # OS specific support. $var _must_ be set to either true or false.
  44. cygwin=false;
  45. case "`uname`" in
  46. CYGWIN*) cygwin=true ;;
  47. esac
  48. # For Cygwin, ensure paths are in UNIX format before anything is touched
  49. if $cygwin ; then
  50. [ -n "$ANT_HOME" ] &&
  51. ANT_HOME=`cygpath --unix "$ANT_HOME"`
  52. fi
  53. "$ANT_HOME"/bin/ant "$@"