Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
1dd68e1f
Unverified
Commit
1dd68e1f
authored
Sep 16, 2016
by
SHIBATA Hiroshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace official tool named bump-formula-pr
parent
1b8bbf6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
21 deletions
+1
-21
script/brew-publish
+1
-21
No files found.
script/brew-publish
View file @
1dd68e1f
...
@@ -29,24 +29,4 @@ if [ -z "$checksum" ]; then
...
@@ -29,24 +29,4 @@ if [ -z "$checksum" ]; then
exit
1
exit
1
fi
fi
pushd
"
$(
brew
--prefix
)
"
brew bump-formula-pr
--url
=
$url
--sha256
=
$checksum
$brew_name
git fetch
-q
--unshallow
origin master 2>/dev/null
||
git fetch
-q
origin master
branch
=
"
${
brew_name
}
-
${
version
}
"
git checkout
-q
-B
"
$branch
"
origin/master
formula
=
"Library/Formula/
${
brew_name
}
.rb"
sed
-i
.bak
-E
"
s!^( url ).+!
\\
1
\"
${
url
}
\"
!
s!^( sha256 ).+!
\\
1
\"
${
checksum
}
\"
!
"
"
$formula
"
rm
-f
"
${
formula
}
.bak"
git commit
-m
"
${
brew_name
}
${
version
#v
}
"
--
"
$formula
"
# hackish way of getting the git remote name for user's fork
fork_remote
=
"
$(
hub fork 2>&1 |
grep
-oE
'remote:? \S+'
| tail
-1
| awk
'{print $2}'
)
"
git push
-u
"
$fork_remote
"
HEAD
hub pull-request
-m
"
${
brew_name
}
${
version
#v
}
"
git checkout
-q
-
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment