release.sh 422 Bytes
#!/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/

if [ -z "$CP_DIR" ]
then
  CP_DIR=/nfs/prime_oven
fi

for DEST_DIR in ${CP_DIR}
do
  echo "copy from release to ${DEST_DIR}"
  mkdir -p ${DEST_DIR}/
  cp -rf release/* ${DEST_DIR}
done