diff --git a/codespan-lsp/Cargo.toml b/codespan-lsp/Cargo.toml index 07a7b20..e831ce7 100644 --- a/codespan-lsp/Cargo.toml +++ b/codespan-lsp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codespan-lsp" -version = "0.8.0" # CODESPAN +version = "0.8.0" license = "Apache-2.0" authors = ["Markus Westerlind "] description = "Conversions between codespan types and Language Server Protocol types" @@ -10,6 +10,6 @@ documentation = "https://docs.rs/codespan-lsp" edition = "2018" [dependencies] -codespan = { version = "0.8.0", path = "../codespan" } # CODESPAN +codespan = { version = "0.8.0", path = "../codespan" } lsp-types = "0.73" url = "2" diff --git a/codespan-reporting/Cargo.toml b/codespan-reporting/Cargo.toml index 20e7d7f..b038710 100644 --- a/codespan-reporting/Cargo.toml +++ b/codespan-reporting/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codespan-reporting" -version = "0.8.0" # CODESPAN +version = "0.8.0" readme = "../README.md" license = "Apache-2.0" authors = ["Brendan Zabarauskas "] diff --git a/codespan/Cargo.toml b/codespan/Cargo.toml index 3912cdc..bc8468b 100644 --- a/codespan/Cargo.toml +++ b/codespan/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codespan" -version = "0.8.0" # CODESPAN +version = "0.8.0" readme = "README.md" license = "Apache-2.0" authors = ["Brendan Zabarauskas "] @@ -11,7 +11,7 @@ documentation = "https://docs.rs/codespan" edition = "2018" [dependencies] -codespan-reporting = { path = "../codespan-reporting", version = "0.8.0", optional = true } # CODESPAN +codespan-reporting = { path = "../codespan-reporting", version = "0.8.0", optional = true } serde = { version = "1", optional = true, features = ["derive"]} [features] diff --git a/tools/publish b/tools/publish deleted file mode 100755 index 4331fa1..0000000 --- a/tools/publish +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -set -euo pipefail - -# A script to bump the version number on all Cargo.toml files etc in -# an atomic fashion. - -VERSION=$( - ls codespan*/Cargo.toml | \ - xargs grep "# CODESPAN$" | \ - perl -p -e 's/.*version = "([0-9.]+)".* # CODESPAN$/$1/' | - sort | - uniq -) - -if [[ "$(echo "$VERSION" | wc -w)" -ne "1" ]]; then - echo "Error: inconsistent versions detected across Cargo.toml files!" - echo "$VERSION" - exit 1 -fi - -echo "Found consistent version $VERSION" - -TMPDIR=${TMPDIR:-"/tmp"} - -function publish_fail { - printf "ERROR\\n" - cat "$TMPDIR/publish-log" - exit 1 -} - -function publish { - printf "Publishing %s..." "$1" - set +e - (cd "$1" && cargo publish) >& "$TMPDIR/publish-log" || publish_fail "$1" - set -e - printf "OK\\n" -} - -publish codespan -publish codespan-reporting -publish codespan-lsp - -git tag "v$VERSION" -git push origin tag "v$VERSION" - -printf "\\nAll set. **Do not forget to commit new changes.**\\n"