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