mirror of
https://github.com/openharmony/third_party_rust_codespan.git
synced 2026-07-21 03:55:28 -04:00
Remove publish script
I never actually used this! Might as well remove it.
This commit is contained in:
@@ -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,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
@@ -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]
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user