mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-04-25 03:02:15 +00:00
update version.sh script to affect doc
contents
This commit is contained in:
parent
94dda2e852
commit
30570e4cd3
@ -9,6 +9,9 @@ path = "../../../lalrpop"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
docopt = "0.7"
|
docopt = "0.7"
|
||||||
lalrpop-util = { version = "0.12.5", path = "../../../lalrpop-util" }
|
|
||||||
rustc-serialize = "0.3"
|
rustc-serialize = "0.3"
|
||||||
regex = "0.2.1"
|
regex = "0.2.1"
|
||||||
|
|
||||||
|
[dependencies.lalrpop-util]
|
||||||
|
version = "0.12.5"
|
||||||
|
path = "../../../lalrpop-util"
|
||||||
|
18
version.sh
18
version.sh
@ -8,5 +8,23 @@ if [ "$1" == "" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
VERSION=$(
|
||||||
|
ls lalrpop*/Cargo.toml | \
|
||||||
|
xargs grep "# LALRPOP$" | \
|
||||||
|
perl -p -e 's/.*version = "([0-9.]+)" # LALRPOP$/$1/' |
|
||||||
|
sort |
|
||||||
|
uniq)
|
||||||
|
|
||||||
|
if [ $(echo $VERSION | wc -w) != 1 ]; then
|
||||||
|
echo "Error: inconsistent versions detected across Cargo.toml files!"
|
||||||
|
echo "$VERSION"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Found consistent version $VERSION"
|
||||||
|
|
||||||
perl -p -i -e 's/version *= *"[0-9.]+" # LALRPOP$/version = "'$1'" # LALRPOP/' \
|
perl -p -i -e 's/version *= *"[0-9.]+" # LALRPOP$/version = "'$1'" # LALRPOP/' \
|
||||||
$(ls lalrpop*/Cargo.toml)
|
$(ls lalrpop*/Cargo.toml)
|
||||||
|
|
||||||
|
perl -p -i -e 's/version *= *"'$VERSION'"$/version = "'$1'"/' \
|
||||||
|
$(find doc -name Cargo.toml)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user