0 Star 1 Fork 2

光年以外 / qqwry.dat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
auto_update_qqwry.sh 868 Bytes
一键复制 编辑 原始数据 按行查看 历史
out0fmemory 提交于 2020-01-03 00:01 . 增加新的纯真数据获取方式
#!/bin/sh
echo start update qqwry data at`date`
tem_file="qqwry_tem.dat"
lastest_data=`pwd`/qqwry_lastest.dat
lastest_md5=""
if [ -f "${lastest_data}" ]; then
echo old data exist!
lastest_md5=`md5sum ${lastest_data}|cut -d " " -f 1`
fi
echo old data md5 is ${lastest_md5}
#python3 update_chunzhen.py ${tem_file}
sh ./get_chunzhen.sh ${tem_file}
tem_md5=""
if [ -f "${tem_file}" ];then
tem_md5=`md5sum ${tem_file}|cut -d " " -f 1`
fi
echo download file md5 is ${tem_md5}
if [ "${lastest_md5}" = "${tem_md5}" ];then
echo same file, no need update anything!
rm -f ${tem_file}
exit 0
fi
# copy data to date dir
echo copy date to date dir
date_dir="historys/`date "+%Y_%m_%d"`"
echo ${date_dir}
mkdir historys
mkdir ${date_dir}
# copy tem file
cp ${tem_file} ${lastest_data}
cp ${tem_file} ${date_dir}/qqwry.dat
rm -f ${tem_file}
echo finish everything
1
https://gitee.com/light-year/qqwry.dat.git
git@gitee.com:light-year/qqwry.dat.git
light-year
qqwry.dat
qqwry.dat
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891