mirror of
https://github.com/molovo/revolver.git
synced 2026-09-10 06:36:14 -04:00
Remove formula from repo and update in tap repository
This commit is contained in:
parent
686835657e
commit
ab9ba797f4
|
|
@ -1,14 +0,0 @@
|
|||
class Revolver < Formula
|
||||
desc "Progress spinner for ZSH scripts"
|
||||
homepage "https://github.com/molovo/revolver"
|
||||
url "https://github.com/molovo/revolver/archive/v0.2.4.tar.gz"
|
||||
sha256 "14fc00f9afecf5fd9db639ce1a237115faf8d21c5168fbc5dc87a04717a42caa"
|
||||
bottle :unneeded
|
||||
def install
|
||||
bin.install "revolver"
|
||||
zsh_completion.install "revolver.zsh-completion" => "_revolver"
|
||||
end
|
||||
test do
|
||||
assert_equal version.to_s, shell_output("#{bin}/revolver -v")
|
||||
end
|
||||
end
|
||||
|
|
@ -16,6 +16,8 @@ function update_homebrew() {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
git clone https://${GH_TOKEN}@github.com/molovo/homebrew-revolver.git deployment >/dev/null 2>&1
|
||||
|
||||
for cmd in $sumcmds; do
|
||||
if type -p $cmd >/dev/null 2>&1; then
|
||||
sumcmd=$cmd
|
||||
|
|
@ -33,7 +35,7 @@ function update_homebrew() {
|
|||
local sum=${sumparts[1]}
|
||||
local oldIFS=$IFS
|
||||
IFS=$'\n'
|
||||
local -a formula; formula=($(cat ./Formula/revolver.rb))
|
||||
local -a formula; formula=($(cat ./deployment/Formula/revolver.rb))
|
||||
for line in "${(@f)formula}"; do
|
||||
if [[ "$line" =~ '^([ ]+)?url \".*\"' ]]; then
|
||||
echo " url \"$url\"" >> tmpfile
|
||||
|
|
@ -49,7 +51,6 @@ function update_homebrew() {
|
|||
done
|
||||
IFS=$oldIFS
|
||||
|
||||
git clone https://${GH_TOKEN}@github.com/molovo/revolver.git deployment >/dev/null 2>&1
|
||||
|
||||
mv tmpfile deployment/Formula/revolver.rb
|
||||
|
||||
|
|
@ -58,7 +59,7 @@ function update_homebrew() {
|
|||
git config user.name 'James Dinsdale'
|
||||
|
||||
git add ./Formula/revolver.rb
|
||||
git commit -m "Update homebrew formula"
|
||||
git commit -m "Update homebrew formula for version $version"
|
||||
git push --quiet origin master >/dev/null 2>&1
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue