1 Star 0 Fork 6

z2go/lang-replacement

forked from g-devops/lang-replacement 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
entry.sh 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# $AUTH #-b $GENERATE_BRANCH
# TODO /output/.cache/pt0_dict
mkdir -p /output/.cache; srcGenerate=/output/.cache/pt0_dict
# git clone $GENERATE_REPO $srcGenerate #each newDir, just normal clone.
# repo
function getRepo(){
errExit(){
echo "$1"
exit 1
}
if [ ! -d $srcGenerate ]; then
git clone $GENERATE_REPO $srcGenerate #--depth=1
else
cd $srcGenerate;
git fetch
echo "更新repo, 如有branch/tag对不上的err, 请ignore"
# if both tag:
git fetch origin tag $CMP1
git fetch origin tag $CMP2
#pull branch.
git fetch origin $CMP1
git fetch origin $CMP2
fi
}
getRepo
# wget newest dictions
file=dictReplace.txt; wget -qO /generate/$file https://gitee.com/g-devops/lang-replacement/raw/dev/generate/$file
cat /generate/$file |wc
file=dict_fications.txt; wget -qO /generate/$file https://gitee.com/g-devops/lang-replacement/raw/dev/generate/$file
cat /generate/$file |wc
file=dict_button_th_placeholer.txt; wget -qO /generate/$file https://gitee.com/g-devops/lang-replacement/raw/dev/generate/$file
cat /generate/$file |wc
echo -e "已获取最新replaceDict, 请注意获取到dict的行数(避免无效数据) \n准备clone仓库反向分析 生成替换字典:(sleep 5)"; sleep 5
outPath="/output" && mkdir -p $outPath
# export CMP1=055c57
# export CMP2=br-lang2
export SOURCE=$srcGenerate/app
export OUTPUT=$outPath/$GENERATE_OUTPUT
/generate/gitdiff.sh
# view
cat $OUTPUT |wc; tail -30 $OUTPUT
# /generate/transfer -f -s $OUTPUT -t /tmp/view.json; cat /tmp/view.json |jq #tranferErr: got "null"
# cat $OUTPUT |/generate/xml2json |jq #nonViewHere
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/z2go/lang-replacement.git
git@gitee.com:z2go/lang-replacement.git
z2go
lang-replacement
lang-replacement
dev

搜索帮助