summaryrefslogtreecommitdiffstats
path: root/scripts/publish.bash
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/publish.bash')
-rwxr-xr-xscripts/publish.bash38
1 files changed, 0 insertions, 38 deletions
diff --git a/scripts/publish.bash b/scripts/publish.bash
deleted file mode 100755
index 2376ac1..0000000
--- a/scripts/publish.bash
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env bash
-
-if [[ -z "$PUBLISH" ]]; then
- 1>&2 echo "Set PUBLISH environment variable to publish"
- exit 1
-fi
-
-set -euo pipefail
-
-if [[ ! -f "$PWD/Cargo.lock" ]]; then
- 1>&2 echo "This script must be run from the project root directory"
- exit 1
-fi
-
-# order is based on dependency graph
-crates=(
- "src/testutils"
- "src/git"
- "src/config"
- "src/display"
- "src/todo_file"
- "src/runtime"
- "src/input"
- "src/view"
- "src/core"
- "src"
-)
-
-for crate in "${crates[@]}"; do
- (
- cd "$crate"
- 1>&2 echo "Publishing $crate"
- cargo publish "$@"
- 1>&2 echo "$crate published"
- 1>&2 echo
- sleep 10
- ) || true
-done