2 Star 9 Fork 3

qdzhaov/mintty

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
keycheck 676 Bytes
一键复制 编辑 原始数据 按行查看 历史
mintty 提交于 2016-12-15 23:19 +08:00 . revised various keyboard shortcuts
#! /bin/sh
menulabelfiles="../src/config.c ../src/winctrls.c ../src/wininput.c"
function getdialoggroups() {
sed -e "s, *//\(__[^%]*:\).*,\1," -e t -e d | sort | uniq
}
LC_ALL=en_US.UTF-8
export LC_ALL
# use patched version of `uniq` for case-insensitive comparison:
PATH="$HOME/opt/coreutils/src:$PATH"
for po in ${*-../lang/*.pot ../lang/*.po}
do case "$po" in
*.pot) msg=msgid;;
*) msg=msgstr;;
esac
cat $menulabelfiles | getdialoggroups |
while read group
do echo "" $po "-" $group ""
sed -e "/$group/,/^$/ b" -e d $po |
grep ^$msg |
sed -e "s,^$msg *\(.*\)\(&.\)\(.*\),\2 \1\2\3," -e t -e d |
sort | uniq | uniq -Diw5
done
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/qdzhaov/mintty.git
git@gitee.com:qdzhaov/mintty.git
qdzhaov
mintty
mintty
master

搜索帮助