"Fossies" - the Fresh Open Source Software Archive

Member "virgoftp/virgoftp" (10 Jul 2006, 1187 Bytes) of package /linux/privat/old/virgoftp_1.3.5.2_linux_gtk_x86.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 PREFIX=
    3 if [ -L "$0" ]; then
    4         PREFIX=`readlink -f $0`
    5         if [ $? -eq 0 ]; then
    6                 PREFIX=`dirname $PREFIX`
    7        else 
    8                 PREFIX=`file $0`
    9                 PREFIX=${PREFIX##*symbolic link to }
   10                 PREFIX=`dirname $PREFIX`
   11         fi
   12 else
   13         PREFIX=`dirname $0`
   14 fi
   15 case $PREFIX in
   16         /*)
   17         ;;
   18         *)
   19         cd $PREFIX
   20         PREFIX=`pwd`
   21         ;;
   22 esac
   23 
   24 if [ ! -e $HOME/.virgoftp ]; then
   25     echo $HOME/.virgoftp not exit ,now create it .
   26     mkdir $HOME/.virgoftp
   27     mkdir $HOME/.virgoftp/.temp
   28     mkdir $HOME/.virgoftp/log
   29 fi
   30 if [ ! -e $HOME/.virgoftp/preference.xml ]; 
   31     then
   32     echo preference.xml not exit ,now copy it to $HOME/.virgoftp
   33     cp $PREFIX/preference.xml $HOME/.virgoftp/preference.xml
   34 fi
   35 if [ ! -e $HOME/.virgoftp/bookmarks.xml ];
   36     then
   37     echo bookmarks.xml not exit , now copy it to $HOME/.virgoFtp
   38     cp $PREFIX/bookmarks.xml $HOME/.virgoftp/bookmarks.xml
   39 fi
   40 
   41 classpath="./"
   42 cd $PREFIX
   43 for i in `ls lib`
   44 do
   45     classpath=$classpath:lib/$i
   46 done
   47 echo start the VirgoFtp
   48 java -classpath $classpath -Djava.library.path=swt/ -Djava.util.logging.config.file=logging.properties edu.sysu.virgoftp.gui.VirgoFTP
   49