From: John Hodge (sonata) Date: Sun, 28 Dec 2014 02:44:47 +0000 (+0800) Subject: AcessNative - Tweak run script to select root app X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=4c5191b2970013b12662e3c10ff557a60b95df54;p=tpg%2Facess2.git AcessNative - Tweak run script to select root app --- diff --git a/AcessNative/RunNative b/AcessNative/RunNative index 03ec6b00..406573db 100755 --- a/AcessNative/RunNative +++ b/AcessNative/RunNative @@ -11,7 +11,7 @@ KERNEL_PID=$$ function cleanup { trap '' SIGINT echo Cleaning up $KERNEL_PID - kill $KERNEL_PID + kill -INT $KERNEL_PID } trap cleanup SIGINT @@ -23,7 +23,19 @@ ${DIR}/AcessKernel --distroot $DISTROOT > ${DIR}/log/native_AcessKernel.log 2>&1 KERNEL_PID=$! echo Kernel is $KERNEL_PID sleep 1 -LD_LIBRARY_PATH=${DIR}:${DISTROOT}Libs AN_PREOPEN=$VTERM:$VTERM:$VTERM ${DBG} ${DISTROOT}Apps/AxWin/4.0/AxWinServer + +APP=gui4 + +case $APP in +gui4) + LD_LIBRARY_PATH=${DIR}:${DISTROOT}Libs AN_PREOPEN=$VTERM:$VTERM:$VTERM ${DBG} ${DISTROOT}Apps/AxWin/4.0/AxWinServer + ;; +gui3) + LD_LIBRARY_PATH=${DIR}:${DISTROOT}Libs AN_PREOPEN=$VTERM:$VTERM:$VTERM ${DBG} ${DISTROOT}Apps/AxWin/3.0/AxWinWM + ;; +*) + echo "Unknown application '$APP'" +esac trap '' SIGINT cleanup