File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- for value in legacy master
3+ for value in guides stable
44do
55 if [ ! -e " $value /Cargo.toml" ]; then
66 if [ ! -d $value ]; then
77 cargo new $value
88 else
99 cargo init $value
1010 fi
11- if [ $value = legacy ]; then
11+ if [ $value = guides ]; then
1212 cat >> " $value /Cargo.toml" << -EOF
1313 futures = "0.3"
1414 hyper = { version = "0.14", features = ["full"] }
1717EOF
1818 cargo build --manifest-path " $value /Cargo.toml"
1919 fi
20- if [ $value = master ]; then
20+ if [ $value = stable ]; then
2121 cat >> " $value /Cargo.toml" << -EOF
2222 hyper = { version = "1.0.0-rc.1", features = ["full"] }
2323 tokio = { version = "1", features = ["full"] }
2626 cargo build --manifest-path " $value /Cargo.toml"
2727 fi
2828 fi
29-
29+
3030 test_file () {
3131 echo " Testing: $f "
3232 rustdoc --edition 2018 --test $1 -L " $value /target/debug/deps"
3838 fi
3939
4040 status=0
41- for f in ` git ls-files | grep " ^_guides\/ $value .*\.md$" ` ; do
41+ for f in ` git ls-files | grep " ^_ $value \/ .*\.md$" ` ; do
4242 test_file $f
4343 s=$?
4444 if [ " $s " != " 0" ]; then
Original file line number Diff line number Diff line change 11Gemfile *
22_site *
33.sass-cache
4- /legacy
5- /master
4+ /guides
5+ /stable
You can’t perform that action at this time.
0 commit comments