From 70e41b248655ce55204ed710ab6233e8b59ea561 Mon Sep 17 00:00:00 2001 From: jarodruan Date: Fri, 7 Feb 2020 13:56:40 +0800 Subject: [PATCH] update bat sh --- examples/scripts/run-all.sh | 9 +++++ servant/script/cpp_taf_server.sh | 57 --------------------------- servant/script/create_tars_server.bat | 1 + 3 files changed, 10 insertions(+), 57 deletions(-) create mode 100755 examples/scripts/run-all.sh delete mode 100644 servant/script/cpp_taf_server.sh create mode 100644 servant/script/create_tars_server.bat diff --git a/examples/scripts/run-all.sh b/examples/scripts/run-all.sh new file mode 100755 index 0000000..cec9273 --- /dev/null +++ b/examples/scripts/run-all.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "run-all.sh" + +sh ../examples/scripts/run-quick-start.sh +sh ../examples/scripts/run-http.sh +sh ../examples/scripts/run-co.sh +sh ../examples/scripts/run-push.sh + diff --git a/servant/script/cpp_taf_server.sh b/servant/script/cpp_taf_server.sh deleted file mode 100644 index acf268b..0000000 --- a/servant/script/cpp_taf_server.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh - -if [ $# -lt 3 ] -then - echo "" - exit 0 -fi - -APP=$1 -SERVER=$2 -SERVANT=$3 - -if [ "$SERVER" == "$SERVANT" ] -then - echo "Error!(ServerName == ServantName)" - exit -1 -fi - -if [ ! -d $APP/$SERVER ] -then - echo "[mkdir: $APP/$SERVER]" - mkdir -p $APP/$SERVER -fi - -echo "[create server: $APP.$SERVER ...]" - -DEMO_PATH=/usr/local/taf/cpp/script/demo - -make cleanall -C $DEMO_PATH - -cp $DEMO_PATH/* $APP/$SERVER/ - -cd $APP/$SERVER/ - -SRC_FILE="DemoServer.h DemoServer.cpp DemoServantImp.h DemoServantImp.cpp DemoServant.jce makefile" - -for FILE in $SRC_FILE -do - cat $FILE | sed "s/DemoServer/$SERVER/g" > $FILE.tmp - mv $FILE.tmp $FILE - - cat $FILE | sed "s/DemoApp/$APP/g" > $FILE.tmp - mv $FILE.tmp $FILE - - cat $FILE | sed "s/DemoServant/$SERVANT/g" > $FILE.tmp - mv $FILE.tmp $FILE -done - -mv DemoServer.h ${SERVER}.h -mv DemoServer.cpp ${SERVER}.cpp -mv DemoServantImp.h ${SERVANT}Imp.h -mv DemoServantImp.cpp ${SERVANT}Imp.cpp -mv DemoServant.jce ${SERVANT}.jce - -cd ../../ - -echo "[done.]" diff --git a/servant/script/create_tars_server.bat b/servant/script/create_tars_server.bat new file mode 100644 index 0000000..4b34347 --- /dev/null +++ b/servant/script/create_tars_server.bat @@ -0,0 +1 @@ +c:\\taf\\cpp\\script\\busybox.exe bash c:\\taf\\cpp\\script\\win_create.bat %1 %2 %3