1 Star 0 Fork 24

woody2918/etcd

forked from src-openEuler/etcd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
genmanpages.sh 884 Bytes
一键复制 编辑 原始数据 按行查看 历史
jiangxinyu 提交于 2020-08-18 10:22 . release v3.4.7
#!/bin/sh
rm -rf man
mkdir -p man/etcdctl2 man/etcdctl3
pushd man/etcdctl3
ETCDCTL_API=3 ../../$1/bin/etcdctl --help
# rename to etcdctl3...
for line in $(ls *.1); do mv $line $(echo $line | sed "s/etcdctl/etcdctl3/"); done
# rename refs
sed -i "s/\\\fBetcdctl\\\-/\\\fBetcdctl3\\\-/g" *.1
# stress ETCDCTL_API use
sed -i s"/^\\\fBetcdctl /\\\fBETCDCTL=3 etcdctl /" etcdctl3*.1
cd ../etcdctl2
../../$1/bin/etcdctl --help > etcdctl.1
for cmd in $(cat etcdctl.1 | grep "\fBetcdctl\\\-" | cut -d'-' -f2-3 | cut -d'(' -f1); do ../../$1/bin/etcdctl $cmd --help > etcdctl-$cmd.1; done
# rename to etcdctl2
for line in $(ls *.1); do mv $line $(echo $line | sed "s/etcdctl/etcdctl2/"); done
# rename refs
sed -i "s/\\\fBetcdctl\\\-/\\\fBetcdctl2\\\-/g" *.1
cd ..
mv etcdctl2/* .
mv etcdctl3/* .
rm -rf etcdctl2 etcdctl3
cp ../etcdctl.1 .
# Gen etcd.1
../$1/bin/etcd --help > etcd.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/woody2918/etcd.git
git@gitee.com:woody2918/etcd.git
woody2918
etcd
etcd
master

搜索帮助