Remove formula from repo and update in tap repository

This commit is contained in:
James Dinsdale 2017-07-06 00:02:59 +01:00
parent 686835657e
commit ab9ba797f4
No known key found for this signature in database
GPG key ID: DBCB56BD98007031
2 changed files with 4 additions and 17 deletions

View file

@ -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

View file

@ -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
}