File: brew-publish

package info (click to toggle)
ruby-build 20170726-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,704 kB
  • ctags: 129
  • sloc: sh: 1,694; makefile: 11
file content (13 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
# Usage: script/brew-publish <formula-name> <repo> <version>
set -euo pipefail

brew_name="${1?}"
repo="${2?}"
version="${3?}"
shift 3

url="https://github.com/${repo}/archive/${version}.tar.gz"
checksum="$(curl -fsSL "$url" | shasum -a 256 -b | awk '{print $1}')"

brew bump-formula-pr --url="$url" --sha256="$checksum" "$brew_name" "$@"