From 6cf5a899ffc26a34f2c787ede946cf155d89a430 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 7 Jul 2017 11:18:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=96=B4=ED=94=8C=EB=A6=AC=EC=BC=80=EC=9D=B4?= =?UTF-8?q?=EC=85=98=20=EB=A6=B4=EB=A6=AC=EC=A6=88=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=20=EC=A0=95=EB=A6=AC=20=EB=B0=8F=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app-prime-modbus/make.sh | 13 +++++++++---- app/gui/make.sh | 5 +++-- app/modbus-data-viewer/release.sh | 8 +++++--- app/superdaemon/make.sh | 19 ++++++++++++++++--- files/superdaemon.ini | 3 +++ 5 files changed, 36 insertions(+), 12 deletions(-) create mode 100644 files/superdaemon.ini diff --git a/app/app-prime-modbus/make.sh b/app/app-prime-modbus/make.sh index 845248a..37699a8 100755 --- a/app/app-prime-modbus/make.sh +++ b/app/app-prime-modbus/make.sh @@ -8,10 +8,15 @@ then exit ${RET} fi -if [ -z ${CP_DIR} ] +CP_DIR_LIST="/nfs/prime_oven/ ../release/" + +if [ ${CP_DIR} ] then - CP_DIR=../release + CP_DIR_LIST+=${CP_DIR} fi -mkdir -p ${CP_DIR} -cp -v release/* ${CP_DIR} +for DIR in ${CP_DIR_LIST} +do + mkdir -p ${DIR} + cp -v release/* ${DIR} +done diff --git a/app/gui/make.sh b/app/gui/make.sh index 0031d1f..4760a75 100755 --- a/app/gui/make.sh +++ b/app/gui/make.sh @@ -7,9 +7,10 @@ then PRJ=$(basename $1) fi +CP_DIR_LIST="/nfs/prime_oven/ ../release/" if [ -z "$CP_DIR" ] then - CP_DIR=../release + CP_DIR_LIST+=${CP_DIR} fi image_filename=${TARGET} @@ -34,7 +35,7 @@ then exit $? fi -for DEST_DIR in ${CP_DIR} +for DEST_DIR in ${CP_DIR_LIST} do echo "copy from ${OUTPUT_DIR}/${image_filename} to ${DEST_DIR}/$target_filename" mkdir -p ${DEST_DIR}/ diff --git a/app/modbus-data-viewer/release.sh b/app/modbus-data-viewer/release.sh index 23cf1ad..f73165a 100755 --- a/app/modbus-data-viewer/release.sh +++ b/app/modbus-data-viewer/release.sh @@ -17,12 +17,14 @@ fi cp bin/linux_arm/service-web release/service-web cp -rf src/service-web/templates release/ -if [ -z "$CP_DIR" ] +CP_DIR_LIST=/nfs/prime_oven + +if [ $CP_DIR ] then - CP_DIR=/nfs/prime_oven + CP_DIR_LIST+=$CP_DIR fi -for DEST_DIR in ${CP_DIR} +for DEST_DIR in ${CP_DIR_LIST} do echo "copy from release to ${DEST_DIR}" mkdir -p ${DEST_DIR}/ diff --git a/app/superdaemon/make.sh b/app/superdaemon/make.sh index f69abaa..9eb1a71 100755 --- a/app/superdaemon/make.sh +++ b/app/superdaemon/make.sh @@ -1,8 +1,21 @@ #!/bin/sh -if [ -z ${CP_DIR} ] +make + +RET=$? +if [ ${RET} -ne 0 ] +then + exit ${RET} +fi + +CP_DIR_LIST="/nfs/prime_oven ../release/" + +if [ ${CP_DIR} ] then - CP_DIR=../release + CP_DIR_LIST+=${CP_DIR} fi -make && cp -v superdaemon ${CP_DIR} +for DIR in ${CP_DIR_LIST} +do + cp -v superdaemon ${DIR} +done diff --git a/files/superdaemon.ini b/files/superdaemon.ini new file mode 100644 index 0000000..20abae9 --- /dev/null +++ b/files/superdaemon.ini @@ -0,0 +1,3 @@ +1 ./ app-prime-modbus +1 ./ app-prime-gui +1 ./ service-web -- 2.1.4