Browse Source

新增发布脚本

master backtest/v1.1.0
panda 1 year ago
parent
commit
ac0bae9f0c
  1. 42
      shell/dispatch_release.sh

42
shell/dispatch_release.sh

@ -0,0 +1,42 @@
#!/bin/bash
dispatch_branch="release"
#dispatch_version="v1.1.1"
dispatch_version=$1
dir_from="/mnt/d/mt4-multi/ic_mql4_source_01"
dirs_to=(
"/mnt/d/mt4-multi/ic_mql4_source_02"
"/mnt/d/mt4-multi/exness_mql4_source_00"
)
# 判断参数个数是否小于 1
if [ "$#" -lt 1 ]; then
echo "usage: ${0} version"
echo " ${0} v1.1.0"
echo " ${0} v1.2.0"
echo " ..."
exit 1
fi
echo =========================================
echo md5sum release file
dispatch_exec="${dir_from}/Experts/smt_${dispatch_branch}_${dispatch_version}.ex4"
md5sum ${dispatch_exec}
echo =========================================
for directory in ${dirs_to[@]}; do
echo "-----------${directory}---------------"
echo " before..."
ls -l ${directory}/Experts
cp ${dispatch_exec} ${directory}/Experts
#find ${directory}/ -name "*.log"
echo "-------"
echo " after..."
ls -l ${directory}/Experts
echo "--------------------------"
done
Loading…
Cancel
Save