Remove publish script

I never actually used this! Might as well remove it.
This commit is contained in:
Brendan Zabarauskas
2020-03-10 12:48:11 +11:00
parent e5135f8297
commit 73fb504127
4 changed files with 5 additions and 51 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "codespan-lsp"
version = "0.8.0" # CODESPAN
version = "0.8.0"
license = "Apache-2.0"
authors = ["Markus Westerlind <marwes91@gmail.com>"]
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"
+1 -1
View File
@@ -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 <bjzaba@yahoo.com.au>"]
+2 -2
View File
@@ -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 <bjzaba@yahoo.com.au>"]
@@ -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]
-46
View File
@@ -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"