⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cage.sh

📁 一个java写的点群识别软件
💻 SH
字号:
#! /bin/sh# Try to find which directory this script is in -# save the result in "CaGe_InstallDir"parent (){  if parent="` expr \"$1\" : '^\(.*[^/]\)//*[^/][^/]*/*$' 2>&- `"    then echo "$parent"  elif expr "$1" : '^/' 2>&- >/dev/null    then echo "/"    else echo "."  fi}search_directories (){  dirlist="$1"  dirsep="$2"  cmd="$3"  while dir="` expr \"$dirlist\" : \"^\([^$dirsep]*\)\" 2>&- `"  do     test -z "$dir" && dir=.     if [ -L "$dir/$cmd" ] 2>&-       then :     elif [ -x "$dir/$cmd" ]       then echo "$dir"            return 0     fi     dirlist="` expr \"$dirlist\" : \"^[^$dirsep]*$dirsep\(.*\)$\" 2>&- `"  done  return 1}cmd="$0"if expr \"$cmd\" : '.*/' >/dev/null  then CaGe_InstallDir="` parent \"$cmd\" `"  else CaGe_InstallDir="` search_directories \"$PATH\" ':' \"$cmd\" `"fiif [ -z "$CaGe_InstallDir" ]  then echo "CaGe: warning - install directory not found, defaulting to current directory" >&2  else # convert to an absolute path if possible, add trailing slash       CaGe_InstallDir_NoSlash="` ( cd \"$CaGe_InstallDir\" && pwd ) 2>&- || echo \"$CaGe_InstallDir\" `"       CaGe_InstallDir="` expr \"$CaGe_InstallDir\" : '\(.*[^/]\)/*$' `/"fi# the Java application will take care of an empty CaGe_InstallDir itself# (it would actually translate to an absolute path as well)# it has been reported that printf in the external generators may produce# number formats different to those expected by scanf in the native libraries# linked to the Java process.  With this value for LANG, we hope to avoid# inconsistencies.LANG=POSIX; export LANG# Construct a class path appropriate for the Java version# (include standard path for versions before 1.2)version=` cd "${CaGe_InstallDir}."; sh ./java -cp sysinfo.jar org.SysInfo java.version `javadir="` cd \"${CaGe_InstallDir}.\"; sh ./javadir `"if expr $version : '^1-[01]-' 2>&- >&-  then cp1="$javadir/lib/classes.zip:$javadir/classes:${CaGe_InstallDir}swing.jar:"  else cp1=""ficp2="${CaGe_InstallDir}collections.jar:${CaGe_InstallDir}CaGe.jar:${CaGe_InstallDir}JmolApplet.jar:${CaGe_InstallDir}sysinfo.jar:${CaGe_InstallDir}."# start CaGeexport CaGe_InstallDirsh "$CaGe_InstallDir"./java \ -D"CaGe.InstallDir=$CaGe_InstallDir_NoSlash" \ -classpath "$cp1$cp2" \ cage.CaGe

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -