-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix homebrew publish and force early error
- Loading branch information
1 parent
06ac733
commit 2411610
Showing
5 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
######################################################################## | ||
### Update homebrew | ||
|
||
set -e | ||
|
||
jbang_version=`ls build/distributions/jbang-*.*.zip | sed -e 's/.*jbang-\(.*\).zip/\1/g'` | ||
echo "Updating jbang brew with version $jbang_version" | ||
DIST=`ls build/distributions/jbang-${jbang_version}.zip | cut -f1 -d ' '` | ||
sha256=`cat $DIST.sha256` | ||
|
||
rm -rf homebrew-tap | ||
git clone https://github.com/maxandersen/homebrew-tap.git | ||
|
||
cp build/brew/formula/jbang.rb Formula/jbang.rb | ||
|
||
cd homebrew-tap | ||
|
||
git config user.name "Max Rydahl Andersen" | ||
git config user.email "[email protected]" | ||
|
||
cp ../build/brew/Formula/jbang.rb Formula/jbang.rb | ||
|
||
git add Formula/jbang.rb | ||
git commit -m "jbang v${jbang_version}" | ||
|
@@ -24,5 +28,5 @@ echo $remote_repo | |
git push "${remote_repo}" --follow-tags | ||
|
||
|
||
## to test use `brew install holgerbrandl/tap/kscript` | ||
## to test use `brew install maxandersen/tap/jbang` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,5 +88,4 @@ void testDependencies() throws FileNotFoundException { | |
assertThat(result, containsString("log4j")); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters