unify dep info

adjust doc cargo.toml so that publish.sh correctly unify dep version
This commit is contained in:
king6cong 2017-02-28 20:18:23 +08:00
parent c961159578
commit e570f44427
4 changed files with 15 additions and 9 deletions

View File

@ -65,7 +65,7 @@ build = "build.rs" # LALRPOP preprocessing
# needed if you are writing your own tokenizer by
# hand (or if you are already using the regex crate)
[dependencies.regex]
version = "0.2"
version = "0.12.5"
# Add a dependency on the LALRPOP runtime library:
[dependencies.lalrpop-util]

View File

@ -5,9 +5,13 @@ authors = ["Niko Matsakis <niko@alum.mit.edu>"]
build = "build.rs" # <-- We added this and everything after!
workspace = "../.."
[build-dependencies]
lalrpop = { version = "0.12.5", path = "../../lalrpop" }
[build-dependencies.lalrpop]
version = "0.12.5"
path = "../../lalrpop"
[dependencies]
lalrpop-util = { version = "0.12.5", path = "../../lalrpop-util" }
regex = "0.2.1"
[dependencies.lalrpop-util]
version = "0.12.5"
path = "../../lalrpop-util"

View File

@ -4,8 +4,10 @@ version = "0.12.5"
authors = ["Mako <jlauve@rsmw.net>"]
build = "build.rs"
[build-dependencies]
lalrpop = "0.12.5"
[build-dependencies.lalrpop]
version = "0.12.5"
path = "../../lalrpop"
[dependencies]
lalrpop-util = "0.12.5"
[dependencies.lalrpop-util]
version = "0.12.5"
path = "../../lalrpop-util"

View File

@ -46,7 +46,7 @@ perl -p -i -e 's/^lalrpop = "[0-9.]+"$/lalrpop = "'$VERSION'"/' \
doc/tutorial.md doc/*/Cargo.toml >& $TMPDIR/publish-log || publish_fail
perl -p -i -e 's/^lalrpop-util = "[0-9.]+"$/lalrpop-util = "'$VERSION'"/' \
doc/tutorial.md doc/*/Cargo.toml >& $TMPDIR/publish-log || publish_fail
git add README.md doc/tutorial.md doc/*/Cargo.toml >& $TMPDIR/publish-log || publish_fail
git add -f README.md doc/tutorial.md doc/*/Cargo.toml >& $TMPDIR/publish-log || publish_fail
printf "OK\n"
printf "\nAll set. Do not forget to commit new README.md et al.\n"