From: Bon-Yong Lee Date: Thu, 19 Jul 2012 04:25:17 +0000 (+0900) Subject: [Title] Fix shell name X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb875f86c55792a56c651a1868c94f379fe88374;p=sdk%2Ftools%2Fcli.git [Title] Fix shell name [Type] Bugfix [Module] Sub [Priority] Minor [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- diff --git a/org.tizen.cli/doc/install/bin_/debug b/org.tizen.cli/doc/install/bin_/debug deleted file mode 100755 index ebc2645..0000000 --- a/org.tizen.cli/doc/install/bin_/debug +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -MAIN=org.tizen.cli.exec.debug.Main - -SCRIPT="$0" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -DIR_BIN=`dirname $SCRIPT` -DIR_HOME=$DIR_BIN/.. -DIR_LIB=$DIR_HOME/lib -DIR_CONFIG=$DIR_HOME/conf - -JARS=`find $DIR_LIB -name "*.jar"` - -JAR="" -for JAR_FILE in $JARS; do - JAR=$JAR:$JAR_FILE -done - -CLASSPATH=$DIR_CONFIG:$JAR - -OPT_LOGGING="-Dlog4j.configuration=log4j.xml" -OPT_PRG_NAME="-Dcli.name=$SCRIPT" - -READ_ARG="n" - -OPT_TRACE= - -for WORD in $@; do - if [ "y" = "$READ_ARG" ] - then - OPT_LOGGING="-Dlog4j.configuration=log4j-${WORD}.xml" - if [ "$WORD" = "trace" ] - then - OPT_TRACE="-Dlog4j.debug=true" - fi - READ_ARG="n" - fi - case $WORD in - "--log" | "-l" ) - READ_ARG="y" - ;; - esac -done - -OPT="$OPT_TRACE $OPT_LOGGING $OPT_PRG_NAME" - -EXEC="java -cp $CLASSPATH $OPT $MAIN $@" - -if [ -n "$OPT_TRACE" ] -then - echo "Command :$EXEC" -fi - -$EXEC diff --git a/org.tizen.cli/doc/install/bin_/debug.bat b/org.tizen.cli/doc/install/bin_/debug.bat deleted file mode 100644 index 15466d0..0000000 --- a/org.tizen.cli/doc/install/bin_/debug.bat +++ /dev/null @@ -1,45 +0,0 @@ -@echo off -set SCRIPT=%0 - -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH -FOR /f "tokens=1,2 delims==" %%i IN (%localappdata%\.TizenSDK\tizensdkpath) DO if %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\SDK\dev_tools -set MAIN=org.tizen.cli.exec.debug.Main - -set OPT_TRACE= -set OPT_LOGGING=-Dlog4j.configuration=log4j.xml -set OPT_PRG_NAME=-Dcli.name=%SCRIPT% - -set READ_ARG=n - -FOR %%W IN ( %* ) DO ( call:parseArg %%W ) - -set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME% -set EXEC=java -cp %CLI_HOME%\conf -Djava.ext.dirs=%CLI_HOME%\lib %OPT% %MAIN% %* - -IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% ) - -%EXEC% -goto:eof - -:parseArg - IF y == %READ_ARG% goto SET_LOGGING - -:SECOND_STEP - IF %~1 == --log goto SET_READY - IF %~1 == -l goto SET_READY -:END_STEP -goto:eof - -:SET_LOGGING - set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml - IF %~1 == trace set OPT_TRACE=-Dlog4j.debug=true - set READ_ARG=n - - goto SECOND_STEP - -:SET_READY - set READ_ARG=y - goto END_STEP - diff --git a/org.tizen.cli/doc/install/bin_/install b/org.tizen.cli/doc/install/bin_/install deleted file mode 100755 index 4939e32..0000000 --- a/org.tizen.cli/doc/install/bin_/install +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -MAIN=org.tizen.cli.exec.install.Main - -SCRIPT="$0" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -DIR_BIN=`dirname $SCRIPT` -DIR_HOME=$DIR_BIN/.. -DIR_LIB=$DIR_HOME/lib -DIR_CONFIG=$DIR_HOME/conf - -JARS=`find $DIR_LIB -name "*.jar"` - -JAR="" -for JAR_FILE in $JARS; do - JAR=$JAR:$JAR_FILE -done - -CLASSPATH=$DIR_CONFIG:$JAR - -OPT_LOGGING="-Dlog4j.configuration=log4j.xml" -OPT_PRG_NAME="-Dcli.name=$SCRIPT" - -READ_ARG="n" - -OPT_TRACE= - -for WORD in $@; do - if [ "y" = "$READ_ARG" ] - then - OPT_LOGGING="-Dlog4j.configuration=log4j-${WORD}.xml" - if [ "$WORD" = "trace" ] - then - OPT_TRACE="-Dlog4j.debug=true" - fi - READ_ARG="n" - fi - case $WORD in - "--log" | "-l" ) - READ_ARG="y" - ;; - esac -done - -OPT="$OPT_TRACE $OPT_LOGGING $OPT_PRG_NAME" - -EXEC="java -cp $CLASSPATH $OPT $MAIN $@" - -if [ -n "$OPT_TRACE" ] -then - echo "Command :$EXEC" -fi - -$EXEC diff --git a/org.tizen.cli/doc/install/bin_/install.bat b/org.tizen.cli/doc/install/bin_/install.bat deleted file mode 100644 index c600b21..0000000 --- a/org.tizen.cli/doc/install/bin_/install.bat +++ /dev/null @@ -1,45 +0,0 @@ -@echo off -set SCRIPT=%0 - -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH -FOR /f "tokens=1,2 delims==" %%i IN (%localappdata%\.TizenSDK\tizensdkpath) DO if %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\SDK\dev_tools -set MAIN=org.tizen.cli.exec.install.Main - -set OPT_TRACE= -set OPT_LOGGING=-Dlog4j.configuration=log4j.xml -set OPT_PRG_NAME=-Dcli.name=%SCRIPT% - -set READ_ARG=n - -FOR %%W IN ( %* ) DO ( call:parseArg %%W ) - -set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME% -set EXEC=java -cp %CLI_HOME%\conf -Djava.ext.dirs=%CLI_HOME%\lib %OPT% %MAIN% %* - -IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% ) - -%EXEC% -goto:eof - -:parseArg - IF y == %READ_ARG% goto SET_LOGGING - -:SECOND_STEP - IF %~1 == --log goto SET_READY - IF %~1 == -l goto SET_READY -:END_STEP -goto:eof - -:SET_LOGGING - set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml - IF %~1 == trace set OPT_TRACE=-Dlog4j.debug=true - set READ_ARG=n - - goto SECOND_STEP - -:SET_READY - set READ_ARG=y - goto END_STEP - diff --git a/org.tizen.cli/doc/install/bin_/query b/org.tizen.cli/doc/install/bin_/query deleted file mode 100755 index 6f16928..0000000 --- a/org.tizen.cli/doc/install/bin_/query +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -MAIN=org.tizen.cli.exec.query.Main - -SCRIPT="$0" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -DIR_BIN=`dirname $SCRIPT` -DIR_HOME=$DIR_BIN/.. -DIR_LIB=$DIR_HOME/lib -DIR_CONFIG=$DIR_HOME/conf - -JARS=`find $DIR_LIB -name "*.jar"` - -JAR="" -for JAR_FILE in $JARS; do - JAR=$JAR:$JAR_FILE -done - -CLASSPATH=$DIR_CONFIG:$JAR - -OPT_LOGGING="-Dlog4j.configuration=log4j.xml" -OPT_PRG_NAME="-Dcli.name=$SCRIPT" - -READ_ARG="n" - -OPT_TRACE= - -for WORD in $@; do - if [ "y" = "$READ_ARG" ] - then - OPT_LOGGING="-Dlog4j.configuration=log4j-${WORD}.xml" - if [ "$WORD" = "trace" ] - then - OPT_TRACE="-Dlog4j.debug=true" - fi - READ_ARG="n" - fi - case $WORD in - "--log" | "-l" ) - READ_ARG="y" - ;; - esac -done - -OPT="$OPT_TRACE $OPT_LOGGING $OPT_PRG_NAME" - -EXEC="java -cp $CLASSPATH $OPT $MAIN $@" - -if [ -n "$OPT_TRACE" ] -then - echo "Command :$EXEC" -fi - -$EXEC diff --git a/org.tizen.cli/doc/install/bin_/query.bat b/org.tizen.cli/doc/install/bin_/query.bat deleted file mode 100644 index c2ba7b5..0000000 --- a/org.tizen.cli/doc/install/bin_/query.bat +++ /dev/null @@ -1,45 +0,0 @@ -@echo off -set SCRIPT=%0 - -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH -FOR /f "tokens=1,2 delims==" %%i IN (%localappdata%\.TizenSDK\tizensdkpath) DO if %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\SDK\dev_tools -set MAIN=org.tizen.cli.exec.query.Main - -set OPT_TRACE= -set OPT_LOGGING=-Dlog4j.configuration=log4j.xml -set OPT_PRG_NAME=-Dcli.name=%SCRIPT% - -set READ_ARG=n - -FOR %%W IN ( %* ) DO ( call:parseArg %%W ) - -set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME% -set EXEC=java -cp %CLI_HOME%\conf -Djava.ext.dirs=%CLI_HOME%\lib %OPT% %MAIN% %* - -IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% ) - -%EXEC% -goto:eof - -:parseArg - IF y == %READ_ARG% goto SET_LOGGING - -:SECOND_STEP - IF %~1 == --log goto SET_READY - IF %~1 == -l goto SET_READY -:END_STEP -goto:eof - -:SET_LOGGING - set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml - IF %~1 == trace set OPT_TRACE=-Dlog4j.debug=true - set READ_ARG=n - - goto SECOND_STEP - -:SET_READY - set READ_ARG=y - goto END_STEP - diff --git a/org.tizen.cli/doc/install/bin_/run b/org.tizen.cli/doc/install/bin_/run deleted file mode 100755 index a76202a..0000000 --- a/org.tizen.cli/doc/install/bin_/run +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -MAIN=org.tizen.cli.exec.run.Main - -SCRIPT="$0" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -DIR_BIN=`dirname $SCRIPT` -DIR_HOME=$DIR_BIN/.. -DIR_LIB=$DIR_HOME/lib -DIR_CONFIG=$DIR_HOME/conf - -JARS=`find $DIR_LIB -name "*.jar"` - -JAR="" -for JAR_FILE in $JARS; do - JAR=$JAR:$JAR_FILE -done - -CLASSPATH=$DIR_CONFIG:$JAR - -OPT_LOGGING="-Dlog4j.configuration=log4j.xml" -OPT_PRG_NAME="-Dcli.name=$SCRIPT" - -READ_ARG="n" - -OPT_TRACE= - -for WORD in $@; do - if [ "y" = "$READ_ARG" ] - then - OPT_LOGGING="-Dlog4j.configuration=log4j-${WORD}.xml" - if [ "$WORD" = "trace" ] - then - OPT_TRACE="-Dlog4j.debug=true" - fi - READ_ARG="n" - fi - case $WORD in - "--log" | "-l" ) - READ_ARG="y" - ;; - esac -done - -OPT="$OPT_TRACE $OPT_LOGGING $OPT_PRG_NAME" - -EXEC="java -cp $CLASSPATH $OPT $MAIN $@" - -if [ -n "$OPT_TRACE" ] -then - echo "Command :$EXEC" -fi - -$EXEC diff --git a/org.tizen.cli/doc/install/bin_/run.bat b/org.tizen.cli/doc/install/bin_/run.bat deleted file mode 100644 index 9751380..0000000 --- a/org.tizen.cli/doc/install/bin_/run.bat +++ /dev/null @@ -1,45 +0,0 @@ -@echo off -set SCRIPT=%0 - -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH -FOR /f "tokens=1,2 delims==" %%i IN (%localappdata%\.TizenSDK\tizensdkpath) DO if %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\SDK\dev_tools -set MAIN=org.tizen.cli.exec.run.Main - -set OPT_TRACE= -set OPT_LOGGING=-Dlog4j.configuration=log4j.xml -set OPT_PRG_NAME=-Dcli.name=%SCRIPT% - -set READ_ARG=n - -FOR %%W IN ( %* ) DO ( call:parseArg %%W ) - -set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME% -set EXEC=java -cp %CLI_HOME%\conf -Djava.ext.dirs=%CLI_HOME%\lib %OPT% %MAIN% %* - -IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% ) - -%EXEC% -goto:eof - -:parseArg - IF y == %READ_ARG% goto SET_LOGGING - -:SECOND_STEP - IF %~1 == --log goto SET_READY - IF %~1 == -l goto SET_READY -:END_STEP -goto:eof - -:SET_LOGGING - set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml - IF %~1 == trace set OPT_TRACE=-Dlog4j.debug=true - set READ_ARG=n - - goto SECOND_STEP - -:SET_READY - set READ_ARG=y - goto END_STEP - diff --git a/org.tizen.cli/doc/install/bin_/sign b/org.tizen.cli/doc/install/bin_/sign deleted file mode 100755 index 0563925..0000000 --- a/org.tizen.cli/doc/install/bin_/sign +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -MAIN=org.tizen.cli.exec.sign.Main - -SCRIPT="$0" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -DIR_BIN=`dirname $SCRIPT` -DIR_HOME=$DIR_BIN/.. -DIR_LIB=$DIR_HOME/lib -DIR_CONFIG=$DIR_HOME/conf - -JARS=`find $DIR_LIB -name "*.jar"` - -JAR="" -for JAR_FILE in $JARS; do - JAR=$JAR:$JAR_FILE -done - -CLASSPATH=$DIR_CONFIG:$JAR - -OPT_LOGGING="-Dlog4j.configuration=log4j.xml" -OPT_PRG_NAME="-Dcli.name=$SCRIPT" - -READ_ARG="n" - -OPT_TRACE= - -for WORD in $@; do - if [ "y" = "$READ_ARG" ] - then - OPT_LOGGING="-Dlog4j.configuration=log4j-${WORD}.xml" - if [ "$WORD" = "trace" ] - then - OPT_TRACE="-Dlog4j.debug=true" - fi - READ_ARG="n" - fi - case $WORD in - "--log" | "-l" ) - READ_ARG="y" - ;; - esac -done - -OPT="$OPT_TRACE $OPT_LOGGING $OPT_PRG_NAME" - -EXEC="java -cp $CLASSPATH $OPT $MAIN $@" - -if [ -n "$OPT_TRACE" ] -then - echo "Command :$EXEC" -fi - -$EXEC diff --git a/org.tizen.cli/doc/install/bin_/sign.bat b/org.tizen.cli/doc/install/bin_/sign.bat deleted file mode 100644 index 94be6a3..0000000 --- a/org.tizen.cli/doc/install/bin_/sign.bat +++ /dev/null @@ -1,45 +0,0 @@ -@echo off -set SCRIPT=%0 - -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH -FOR /f "tokens=1,2 delims==" %%i IN (%localappdata%\.TizenSDK\tizensdkpath) DO if %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\SDK\dev_tools -set MAIN=org.tizen.cli.exec.sign.Main - -set OPT_TRACE= -set OPT_LOGGING=-Dlog4j.configuration=log4j.xml -set OPT_PRG_NAME=-Dcli.name=%SCRIPT% - -set READ_ARG=n - -FOR %%W IN ( %* ) DO ( call:parseArg %%W ) - -set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME% -set EXEC=java -cp %CLI_HOME%\conf -Djava.ext.dirs=%CLI_HOME%\lib %OPT% %MAIN% %* - -IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% ) - -%EXEC% -goto:eof - -:parseArg - IF y == %READ_ARG% goto SET_LOGGING - -:SECOND_STEP - IF %~1 == --log goto SET_READY - IF %~1 == -l goto SET_READY -:END_STEP -goto:eof - -:SET_LOGGING - set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml - IF %~1 == trace set OPT_TRACE=-Dlog4j.debug=true - set READ_ARG=n - - goto SECOND_STEP - -:SET_READY - set READ_ARG=y - goto END_STEP - diff --git a/org.tizen.cli/doc/install/bin_/uninstall b/org.tizen.cli/doc/install/bin_/uninstall deleted file mode 100755 index 9644f74..0000000 --- a/org.tizen.cli/doc/install/bin_/uninstall +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -MAIN=org.tizen.cli.exec.uninstall.Main - -SCRIPT="$0" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -DIR_BIN=`dirname $SCRIPT` -DIR_HOME=$DIR_BIN/.. -DIR_LIB=$DIR_HOME/lib -DIR_CONFIG=$DIR_HOME/conf - -JARS=`find $DIR_LIB -name "*.jar"` - -JAR="" -for JAR_FILE in $JARS; do - JAR=$JAR:$JAR_FILE -done - -CLASSPATH=$DIR_CONFIG:$JAR - -OPT_LOGGING="-Dlog4j.configuration=log4j.xml" -OPT_PRG_NAME="-Dcli.name=$SCRIPT" - -READ_ARG="n" - -OPT_TRACE= - -for WORD in $@; do - if [ "y" = "$READ_ARG" ] - then - OPT_LOGGING="-Dlog4j.configuration=log4j-${WORD}.xml" - if [ "$WORD" = "trace" ] - then - OPT_TRACE="-Dlog4j.debug=true" - fi - READ_ARG="n" - fi - case $WORD in - "--log" | "-l" ) - READ_ARG="y" - ;; - esac -done - -OPT="$OPT_TRACE $OPT_LOGGING $OPT_PRG_NAME" - -EXEC="java -cp $CLASSPATH $OPT $MAIN $@" - -if [ -n "$OPT_TRACE" ] -then - echo "Command :$EXEC" -fi - -$EXEC diff --git a/org.tizen.cli/doc/install/bin_/uninstall.bat b/org.tizen.cli/doc/install/bin_/uninstall.bat deleted file mode 100644 index 7410b14..0000000 --- a/org.tizen.cli/doc/install/bin_/uninstall.bat +++ /dev/null @@ -1,45 +0,0 @@ -@echo off -set SCRIPT=%0 - -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH -FOR /f "tokens=1,2 delims==" %%i IN (%localappdata%\.TizenSDK\tizensdkpath) DO if %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\SDK\dev_tools -set MAIN=org.tizen.cli.exec.uninstall.Main - -set OPT_TRACE= -set OPT_LOGGING=-Dlog4j.configuration=log4j.xml -set OPT_PRG_NAME=-Dcli.name=%SCRIPT% - -set READ_ARG=n - -FOR %%W IN ( %* ) DO ( call:parseArg %%W ) - -set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME% -set EXEC=java -cp %CLI_HOME%\conf -Djava.ext.dirs=%CLI_HOME%\lib %OPT% %MAIN% %* - -IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% ) - -%EXEC% -goto:eof - -:parseArg - IF y == %READ_ARG% goto SET_LOGGING - -:SECOND_STEP - IF %~1 == --log goto SET_READY - IF %~1 == -l goto SET_READY -:END_STEP -goto:eof - -:SET_LOGGING - set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml - IF %~1 == trace set OPT_TRACE=-Dlog4j.debug=true - set READ_ARG=n - - goto SECOND_STEP - -:SET_READY - set READ_ARG=y - goto END_STEP - diff --git a/org.tizen.cli/doc/install/bin_/wgt b/org.tizen.cli/doc/install/bin_/wgt deleted file mode 100755 index 93b141f..0000000 --- a/org.tizen.cli/doc/install/bin_/wgt +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -MAIN=org.tizen.cli.exec.wgt.Main - -SCRIPT="$0" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -DIR_BIN=`dirname $SCRIPT` -DIR_HOME=$DIR_BIN/.. -DIR_LIB=$DIR_HOME/lib -DIR_CONFIG=$DIR_HOME/conf - -JARS=`find $DIR_LIB -name "*.jar"` - -JAR="" -for JAR_FILE in $JARS; do - JAR=$JAR:$JAR_FILE -done - -CLASSPATH=$DIR_CONFIG:$JAR - -OPT_LOGGING="-Dlog4j.configuration=log4j.xml" -OPT_PRG_NAME="-Dcli.name=$SCRIPT" - -READ_ARG="n" - -OPT_TRACE= - -for WORD in $@; do - if [ "y" = "$READ_ARG" ] - then - OPT_LOGGING="-Dlog4j.configuration=log4j-${WORD}.xml" - if [ "$WORD" = "trace" ] - then - OPT_TRACE="-Dlog4j.debug=true" - fi - READ_ARG="n" - fi - case $WORD in - "--log" | "-l" ) - READ_ARG="y" - ;; - esac -done - -OPT="$OPT_TRACE $OPT_LOGGING $OPT_PRG_NAME" -ARGS=`echo "$@"` -EXEC="java -cp $CLASSPATH $OPT $MAIN $ARGS" - -if [ -n "$OPT_TRACE" ] -then - echo "Command :$EXEC" -fi - -$EXEC diff --git a/org.tizen.cli/doc/install/bin_/wgt.bat b/org.tizen.cli/doc/install/bin_/wgt.bat deleted file mode 100644 index 824a451..0000000 --- a/org.tizen.cli/doc/install/bin_/wgt.bat +++ /dev/null @@ -1,45 +0,0 @@ -@echo off -set SCRIPT=%0 - -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH -FOR /f "tokens=1,2 delims==" %%i IN (%localappdata%\.TizenSDK\tizensdkpath) DO if %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\SDK\dev_tools -set MAIN=org.tizen.cli.exec.wgt.Main - -set OPT_TRACE= -set OPT_LOGGING=-Dlog4j.configuration=log4j.xml -set OPT_PRG_NAME=-Dcli.name=%SCRIPT% - -set READ_ARG=n - -FOR %%W IN ( %* ) DO ( call:parseArg %%W ) - -set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME% -set EXEC=java -cp %CLI_HOME%\conf -Djava.ext.dirs=%CLI_HOME%\lib %OPT% %MAIN% %* - -IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% ) - -%EXEC% -goto:eof - -:parseArg - IF y == %READ_ARG% goto SET_LOGGING - -:SECOND_STEP - IF %~1 == --log goto SET_READY - IF %~1 == -l goto SET_READY -:END_STEP -goto:eof - -:SET_LOGGING - set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml - IF %~1 == trace set OPT_TRACE=-Dlog4j.debug=true - set READ_ARG=n - - goto SECOND_STEP - -:SET_READY - set READ_ARG=y - goto END_STEP -