Remove obsolete bin/ scripts (#322)
This commit is contained in:
parent
ba86225ad4
commit
f0e05f9526
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
bin/manpage
|
|
||||||
bin/pre-release-pull
|
|
||||||
cargo release -v -p watchexec-cli $*
|
|
||||||
echo "REMEMBER to do a 'cargo publish' once CI is done!"
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
bin/pre-release-pull
|
|
||||||
cargo release -v -p watchexec $*
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
[[ ! -z "$WORKSPACE_ROOT" ]] && cd "$WORKSPACE_ROOT"
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
mainbranch="main"
|
|
||||||
upstream_rx="watchexec/"
|
|
||||||
upstream=$(git remote -v | grep -i "$upstream_rx" -m1 | awk '{print $1}')
|
|
||||||
echo "Upstream remote discovered as: $upstream"
|
|
||||||
|
|
||||||
echo "Pulling from upstream"
|
|
||||||
git pull --rebase --autostash "$upstream" "$mainbranch"
|
|
||||||
|
|
||||||
echo "Fetching tags from upstream"
|
|
||||||
git fetch --tags "$upstream"
|
|
43
bin/sign
43
bin/sign
|
@ -1,43 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
if ! which rsign >/dev/null; then
|
|
||||||
echo "Requires rsign2 tool: $ cargo install rsign2"
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
missing=""
|
|
||||||
for f in {B3,SHA512}SUMS{,.auto.minisig}; do
|
|
||||||
[[ ! -f "$f" ]] && missing="$missing $f"
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ ! -z "$missing" ]]; then
|
|
||||||
echo "Usage: bin/sign [rsign options...]"
|
|
||||||
echo "You must first download the relevant sums and minisig files."
|
|
||||||
echo "Missing: $missing"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
sigs=""
|
|
||||||
for algo in B3 SHA512; do
|
|
||||||
echo "Verifying ${algo}SUMS.auto.minisig:"
|
|
||||||
rsign verify \
|
|
||||||
-p "$(dirname $BASH_SOURCE)/../.github/workflows/release.pub" \
|
|
||||||
-x "${algo}SUMS.auto.minisig" \
|
|
||||||
"${algo}SUMS"
|
|
||||||
|
|
||||||
version=$(grep -m1 -oP 'watchexec-[\d.]+' "${algo}SUMS" | cut -d- -f3)
|
|
||||||
ownsig="${algo}SUMS.$(whoami).minisig"
|
|
||||||
sigs="$sigs $ownsig"
|
|
||||||
|
|
||||||
echo "Signing ${algo}SUMS with your key to $ownsig:"
|
|
||||||
rsign sign \
|
|
||||||
-t "watchexec $version signed by maintainer: $(whoami)" \
|
|
||||||
-c 'see README.md for signing information' \
|
|
||||||
-x "$ownsig" \
|
|
||||||
$@ \
|
|
||||||
"${algo}SUMS"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Done; please upload $sigs to Github release $version!"
|
|
Loading…
Reference in New Issue