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
a5d0479a
Commit
a5d0479a
authored
May 19, 2015
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update brew-publish to be sha256-aware
parent
89ce9ebe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
script/brew-publish
+2
-2
No files found.
script/brew-publish
View file @
a5d0479a
...
@@ -22,7 +22,7 @@ fi
...
@@ -22,7 +22,7 @@ fi
url
=
"https://
${
gh_project
/
:/
\/
}
/archive/
${
version
}
.tar.gz"
url
=
"https://
${
gh_project
/
:/
\/
}
/archive/
${
version
}
.tar.gz"
checksum
=
"
$(
curl
-fsSL
"
$url
"
| shasum | awk
'{print $1}'
)
"
checksum
=
"
$(
curl
-fsSL
"
$url
"
| shasum
-a
256
-b
| awk
'{print $1}'
)
"
if
[
-z
"
$checksum
"
]
;
then
if
[
-z
"
$checksum
"
]
;
then
echo
"ERROR: calculating the checksum failed for
$url
"
>
&2
echo
"ERROR: calculating the checksum failed for
$url
"
>
&2
...
@@ -39,7 +39,7 @@ git checkout -q -B "$branch" origin/master
...
@@ -39,7 +39,7 @@ git checkout -q -B "$branch" origin/master
formula
=
"Library/Formula/
${
brew_name
}
.rb"
formula
=
"Library/Formula/
${
brew_name
}
.rb"
sed
-i
.bak
-E
"
sed
-i
.bak
-E
"
s!^( url ).+!
\\
1
\"
${
url
}
\"
!
s!^( url ).+!
\\
1
\"
${
url
}
\"
!
s!^( sha
1
).+!
\\
1
\"
${
checksum
}
\"
!
s!^( sha
256
).+!
\\
1
\"
${
checksum
}
\"
!
"
"
$formula
"
"
"
$formula
"
rm
-f
"
${
formula
}
.bak"
rm
-f
"
${
formula
}
.bak"
...
...
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