Commit 6cf5a899ffc26a34f2c787ede946cf155d89a430

Authored by 김태훈
1 parent d545649676
Exists in master and in 2 other branches fhd, fhd-demo

어플리케이션 릴리즈 스크립트 정리 및 파일 추가

app/app-prime-modbus/make.sh
@@ -8,10 +8,15 @@ then @@ -8,10 +8,15 @@ then
8 exit ${RET} 8 exit ${RET}
9 fi 9 fi
10 10
11 -if [ -z ${CP_DIR} ] 11 +CP_DIR_LIST="/nfs/prime_oven/ ../release/"
  12 +
  13 +if [ ${CP_DIR} ]
12 then 14 then
13 - CP_DIR=../release 15 + CP_DIR_LIST+=${CP_DIR}
14 fi 16 fi
15 17
16 -mkdir -p ${CP_DIR}  
17 -cp -v release/* ${CP_DIR} 18 +for DIR in ${CP_DIR_LIST}
  19 +do
  20 + mkdir -p ${DIR}
  21 + cp -v release/* ${DIR}
  22 +done
app/gui/make.sh
@@ -7,9 +7,10 @@ then @@ -7,9 +7,10 @@ then
7 PRJ=$(basename $1) 7 PRJ=$(basename $1)
8 fi 8 fi
9 9
  10 +CP_DIR_LIST="/nfs/prime_oven/ ../release/"
10 if [ -z "$CP_DIR" ] 11 if [ -z "$CP_DIR" ]
11 then 12 then
12 - CP_DIR=../release 13 + CP_DIR_LIST+=${CP_DIR}
13 fi 14 fi
14 15
15 image_filename=${TARGET} 16 image_filename=${TARGET}
@@ -34,7 +35,7 @@ then @@ -34,7 +35,7 @@ then
34 exit $? 35 exit $?
35 fi 36 fi
36 37
37 -for DEST_DIR in ${CP_DIR} 38 +for DEST_DIR in ${CP_DIR_LIST}
38 do 39 do
39 echo "copy from ${OUTPUT_DIR}/${image_filename} to ${DEST_DIR}/$target_filename" 40 echo "copy from ${OUTPUT_DIR}/${image_filename} to ${DEST_DIR}/$target_filename"
40 mkdir -p ${DEST_DIR}/ 41 mkdir -p ${DEST_DIR}/
app/modbus-data-viewer/release.sh
@@ -17,12 +17,14 @@ fi @@ -17,12 +17,14 @@ fi
17 cp bin/linux_arm/service-web release/service-web 17 cp bin/linux_arm/service-web release/service-web
18 cp -rf src/service-web/templates release/ 18 cp -rf src/service-web/templates release/
19 19
20 -if [ -z "$CP_DIR" ] 20 +CP_DIR_LIST=/nfs/prime_oven
  21 +
  22 +if [ $CP_DIR ]
21 then 23 then
22 - CP_DIR=/nfs/prime_oven 24 + CP_DIR_LIST+=$CP_DIR
23 fi 25 fi
24 26
25 -for DEST_DIR in ${CP_DIR} 27 +for DEST_DIR in ${CP_DIR_LIST}
26 do 28 do
27 echo "copy from release to ${DEST_DIR}" 29 echo "copy from release to ${DEST_DIR}"
28 mkdir -p ${DEST_DIR}/ 30 mkdir -p ${DEST_DIR}/
app/superdaemon/make.sh
1 #!/bin/sh 1 #!/bin/sh
2 2
3 -if [ -z ${CP_DIR} ] 3 +make
  4 +
  5 +RET=$?
  6 +if [ ${RET} -ne 0 ]
  7 +then
  8 + exit ${RET}
  9 +fi
  10 +
  11 +CP_DIR_LIST="/nfs/prime_oven ../release/"
  12 +
  13 +if [ ${CP_DIR} ]
4 then 14 then
5 - CP_DIR=../release 15 + CP_DIR_LIST+=${CP_DIR}
6 fi 16 fi
7 17
8 -make && cp -v superdaemon ${CP_DIR} 18 +for DIR in ${CP_DIR_LIST}
  19 +do
  20 + cp -v superdaemon ${DIR}
  21 +done
files/superdaemon.ini
@@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
  1 +1 ./ app-prime-modbus
  2 +1 ./ app-prime-gui
  3 +1 ./ service-web