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
de155dd1
Commit
de155dd1
authored
Oct 28, 2014
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix `brew-publish` command
[ci skip]
parent
81807c63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
script/brew-publish
+3
-2
No files found.
script/brew-publish
View file @
de155dd1
...
...
@@ -33,6 +33,9 @@ pushd "$(brew --prefix)"
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
}
\"
!
...
...
@@ -40,8 +43,6 @@ sed -i.bak -E "
"
"
$formula
"
rm
-f
"
${
formula
}
.bak"
branch
=
"
${
brew_name
}
-
${
version
}
"
git checkout
-q
-B
"
$branch
"
origin/master
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}'
)
"
...
...
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