chrisg      02/04/25 15:12:13

  Modified:    .        Tag: fop-0_20_2-maintain CHANGES build.sh
  Log:
  Changed build.sh to work under cygwin
  Submitted by: Andriy Palamarchuk <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.10.2.11 +2 -0      xml-fop/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/xml-fop/CHANGES,v
  retrieving revision 1.10.2.10
  retrieving revision 1.10.2.11
  diff -u -r1.10.2.10 -r1.10.2.11
  --- CHANGES   1 Apr 2002 23:48:28 -0000       1.10.2.10
  +++ CHANGES   25 Apr 2002 22:12:13 -0000      1.10.2.11
  @@ -6,6 +6,8 @@
     Submitted by: Michael Gratton <[EMAIL PROTECTED]>
   - Updated ant to version 1.4.1 (Christian Geisert)
     (ant-optional.jar is no longer needed)
  +- Changed build.sh to work under cygwin
  +  Submitted by: Andriy Palamarchuk <[EMAIL PROTECTED]>
   ==============================================================================
   Done since 0.20.2 release
   *** General
  
  
  
  1.15.2.5  +20 -0     xml-fop/build.sh
  
  Index: build.sh
  ===================================================================
  RCS file: /home/cvs/xml-fop/build.sh,v
  retrieving revision 1.15.2.4
  retrieving revision 1.15.2.5
  diff -u -r1.15.2.4 -r1.15.2.5
  --- build.sh  1 Apr 2002 23:48:28 -0000       1.15.2.4
  +++ build.sh  25 Apr 2002 22:12:13 -0000      1.15.2.5
  @@ -12,11 +12,31 @@
     echo "location of the Java Virtual Machine you want to use."
     exit 1
   fi
  +
  +# OS specific support.  $var _must_ be set to either true or false.
  +cygwin=false;
  +case "`uname`" in
  +  CYGWIN*) cygwin=true ;;
  +esac
  +
  +# For Cygwin, ensure paths are in UNIX format before anything is touched
  +if $cygwin ; then
  +  [ -n "$JAVA_HOME" ] &&
  +    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
  +fi
  +
  +
   LIBDIR=lib
   
LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant-1.4.1.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xalanj1compat.jar:$LIBDIR/bsf.jar
   
LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar:$LIBDIR/avalon-framework-cvs-20020315.jar
   
   ANT_HOME=$LIBDIR
  +
  +# For Cygwin, switch paths to Windows format before running java
  +if $cygwin; then
  +  JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
  +  LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
  +fi
   
   echo
   echo Building with classpath $LOCALCLASSPATH
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to