将bash脚本从Windows转换为Linux

时间:2015-03-13 23:34:45

标签: linux bash

我是Linux的新手,我正在尝试从Windows中找到相应的内容

@echo off
if ".%1" == "." goto TellSyntax
set
PRE_CLASSPATH=%MW_HOME%\oracle_common\modules\javax.persistence_2.1.jar;%MW_HOME%\wlserver\modules\com.oracle.weblogic.jpa21support_1.0.0.0_2-1.jar
goto End
:TellSyntax
echo setJPA21SupportPatch %MW_HOME%\wlserver\modules
:End
echo PRE_CLASSPATH=%PRE_CLASSPATH%

1 个答案:

答案 0 :(得分:0)

if [ -z "$1" ]
  then
    echo setJPA21SupportPatch $MW_HOME/wlserver/modules
  else
    export PRE_CLASSPATH=$MW_HOME/oracle_common/modules/javax.persistence_2.1.jar:$MW_HOME/wlserver/modules/com.oracle.weblogic.jpa21support_1.0.0.0_2-1.jar
fi

echo PRE_CLASSPATH=$PRE_CLASSPATH