#!/bin/bash ./build.sh RET=$? if [ ${RET} -ne 0 ] then exit ${RET} fi if [ ! -d release ]; then mkdir release else rm -rf release/* fi cp bin/linux_arm/service-web release/service-web cp -rf src/service-web/templates release/ CP_DIR_LIST="/nfs/prime_oven/ ../release/" if [ $CP_DIR ] then CP_DIR_LIST="${CP_DIR_LIST} ${CP_DIR}" fi for DEST_DIR in ${CP_DIR_LIST} do echo "copy from release to ${DEST_DIR}" mkdir -p ${DEST_DIR}/ cp -rf release/* ${DEST_DIR} done