Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Snow Leopard issue

Help
2009-12-06
2013-02-09
  • Greg Kearney
    Greg Kearney
    2009-12-06

    There seems to  be an issue with the build as DAISY in Snow Leopard it will not start the pipeline-lite application.

     
  • gkearney and I fixed the issue.
    This bugfix will be include in the next version of odt2daisy.

    You can replace .pipeline-lite/pipeline-lite.sh script with the code bellow:

    ==== COPY THE REST OF THIS MESSAGE =====

    #!/bin/bash
    ############################################
    # Simple launch script for the command line
    # version of the Daisy Pipeline  
    ############################################

    # This is the path to Java. Edit this variable to suite your needs.
    #JAVA=`/usr/bin/java> /dev/null`
    JAVA=/usr/bin/java

    # Test java version
    if
    then
      JAVAVERSION=`$JAVA -version 2>&1 | grep version | cut -d '"' -f 2 | cut -d '.' -f 1-2`
      JAVAMAJOR=`echo $JAVAVERSION | cut -d '.' -f 1`
      JAVAMINOR=`echo $JAVAVERSION | cut -d '.' -f 2`
      if
      then   
        echo
        echo "Error: This application requires Java 5 (or later) to run. Only"
        echo "       version $JAVAVERSION was found on your system path. Make sure"
        echo "       Java 5 (or later) is installed on the system and edit this"
        echo "       pipeline.sh script to insert the path to the 'java' command." 
        echo
        echo "       Current (incorrect) java path: $JAVA"
        echo
        exit 1
      fi
    else
      echo
      echo "$JAVAVERSION Error: Java 5 was not found on your system path. Make sure Java 5"
      echo "       (or later) is installed on the system and edit this"
      echo "       pipelins.sh script to insert the path to the 'java' command. $JAVAVERSION" 
      echo
      exit 1
    fi

    # Set classpath
    DIR=`dirname $0`
    PIPELINE_DIR=`dirname $0`
    CP="$PIPELINE_DIR"
    for lib in `find "$PIPELINE_DIR/lib" -name "*.jar"`; do
    CP=$CP:$lib
    done

    # Execute Daisy Pipeline
    $JAVA -XstartOnFirstThread -d32 -classpath  $CP org.daisy.pipeline.lite.PipelineLiteCLI "$@"