Changeset 4207


Ignore:
Timestamp:
07/17/08 14:35:03 (12 years ago)
Author:
curtis
Message:

Fix problem with command line tools on Unix when directory contains a space.

Location:
trunk/tools
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bfconvert

    r4160 r4207  
    66 
    77# JAR libraries must be in the same directory as this 
    8 # command line script for the command to function.   
     8# command line script for the command to function. 
    99 
    1010# If you are a developer working from source and have 
     
    1313 
    1414PROG=loci.formats.tools.ImageConverter 
    15 DIR=`dirname $0` 
     15DIR=`dirname "$0"` 
    1616 
    1717if [ $LOCI_DEVEL ] 
    1818then 
    1919  java -mx512m $PROG "$@" 
    20 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     20elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2121then 
    22   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     22  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2323else 
    2424  echo "Required JAR libraries not found. Please download:" 
  • trunk/tools/bfview

    r4160 r4207  
    66 
    77# JAR libraries must be in the same directory as this 
    8 # command line script for the command to function.   
     8# command line script for the command to function. 
    99 
    1010# If you are a developer working from source and have 
     
    1313 
    1414PROG=loci.formats.gui.ImageViewer 
    15 DIR=`dirname $0` 
     15DIR=`dirname "$0"` 
    1616 
    1717if [ $LOCI_DEVEL ] 
    1818then 
    1919  java -mx512m $PROG "$@" 
    20 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     20elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2121then 
    22   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     22  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2323else 
    2424  echo "Required JAR libraries not found. Please download:" 
  • trunk/tools/editor

    r4160 r4207  
    66 
    77# JAR libraries must be in the same directory as this 
    8 # command line script for the command to function.   
     8# command line script for the command to function. 
    99 
    1010# If you are a developer working from source and have 
     
    1313 
    1414PROG=loci.ome.editor.MetadataEditor 
    15 DIR=`dirname $0` 
     15DIR=`dirname "$0"` 
    1616 
    1717if [ $LOCI_DEVEL ] 
    1818then 
    1919  java -mx512m $PROG "$@" 
    20 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     20elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2121then 
    22   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     22  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2323else 
    2424  echo "Required JAR libraries not found. Please download:" 
  • trunk/tools/ijview

    r4160 r4207  
    77 
    88# JAR libraries must be in the same directory as this 
    9 # command line script for the command to function.   
     9# command line script for the command to function. 
    1010 
    1111# If you are a developer working from source and have 
     
    1414 
    1515PROG=loci.plugins.Importer 
    16 DIR=`dirname $0` 
     16DIR=`dirname "$0"` 
    1717 
    1818if [ $LOCI_DEVEL ] 
    1919then 
    2020  java -mx512m $PROG "$@" 
    21 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     21elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2222then 
    23   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     23  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2424else 
    2525  echo "Required JAR libraries not found. Please download:" 
  • trunk/tools/notes

    r4160 r4207  
    66 
    77# JAR libraries must be in the same directory as this 
    8 # command line script for the command to function.   
     8# command line script for the command to function. 
    99 
    1010# If you are a developer working from source and have 
     
    1313 
    1414PROG=loci.ome.notes.Notes 
    15 DIR=`dirname $0` 
     15DIR=`dirname "$0"` 
    1616 
    1717if [ $LOCI_DEVEL ] 
    1818then 
    1919  java -mx512m $PROG "$@" 
    20 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     20elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2121then 
    22   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     22  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2323else 
    2424  echo "Required JAR libraries not found. Please download:" 
  • trunk/tools/omeul

    r4160 r4207  
    66 
    77# JAR libraries must be in the same directory as this 
    8 # command line script for the command to function.   
     8# command line script for the command to function. 
    99 
    1010# If you are a developer working from source and have 
     
    1313 
    1414PROG=loci.formats.ome.OMEWriter 
    15 DIR=`dirname $0` 
     15DIR=`dirname "$0"` 
    1616 
    1717if [ $LOCI_DEVEL ] 
    1818then 
    1919  java -mx512m $PROG "$@" 
    20 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     20elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2121then 
    22   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     22  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2323else 
    2424  echo "Required JAR libraries not found. Please download:" 
  • trunk/tools/showinf

    r4160 r4207  
    77 
    88# JAR libraries must be in the same directory as this 
    9 # command line script for the command to function.   
     9# command line script for the command to function. 
    1010 
    1111# If you are a developer working from source and have 
     
    1414 
    1515PROG=loci.formats.tools.ImageInfo 
    16 DIR=`dirname $0` 
     16DIR=`dirname "$0"` 
    1717 
    1818if [ $LOCI_DEVEL ] 
    1919then 
    2020  java -mx512m $PROG "$@" 
    21 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     21elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2222then 
    23   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     23  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2424else 
    2525  echo "Required JAR libraries not found. Please download:" 
  • trunk/tools/tiffcomment

    r4164 r4207  
    77 
    88# JAR libraries must be in the same directory as this 
    9 # command line script for the command to function.   
     9# command line script for the command to function. 
    1010 
    1111# If you are a developer working from source and have 
     
    1414 
    1515PROG=loci.formats.tools.TiffComment 
    16 DIR=`dirname $0` 
     16DIR=`dirname "$0"` 
    1717 
    1818if [ $LOCI_DEVEL ] 
    1919then 
    2020  java -mx512m $PROG "$@" 
    21 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     21elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2222then 
    23   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     23  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2424else 
    2525  echo "Required JAR libraries not found. Please download:" 
  • trunk/tools/xmlindent

    r4160 r4207  
    66 
    77# JAR libraries must be in the same directory as this 
    8 # command line script for the command to function.   
     8# command line script for the command to function. 
    99 
    1010# If you are a developer working from source and have 
     
    1313 
    1414PROG=loci.formats.tools.XMLIndent 
    15 DIR=`dirname $0` 
     15DIR=`dirname "$0"` 
    1616 
    1717if [ $LOCI_DEVEL ] 
    1818then 
    1919  java -mx512m $PROG "$@" 
    20 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     20elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2121then 
    22   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     22  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2323else 
    2424  echo "Required JAR libraries not found. Please download:" 
  • trunk/tools/xmlvalid

    r4160 r4207  
    66 
    77# JAR libraries must be in the same directory as this 
    8 # command line script for the command to function.   
     8# command line script for the command to function. 
    99 
    1010# If you are a developer working from source and have 
     
    1313 
    1414PROG=loci.formats.tools.XMLValidate 
    15 DIR=`dirname $0` 
     15DIR=`dirname "$0"` 
    1616 
    1717if [ $LOCI_DEVEL ] 
    1818then 
    1919  java -mx512m $PROG "$@" 
    20 elif [ -e $DIR/loci_tools.jar ] || [ -e $DIR/bio-formats.jar ] 
     20elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ] 
    2121then 
    22   java -mx512m -cp $DIR/bio-formats.jar:$DIR/loci_tools.jar $PROG "$@" 
     22  java -mx512m -cp "$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@" 
    2323else 
    2424  echo "Required JAR libraries not found. Please download:" 
Note: See TracChangeset for help on using the changeset viewer.