Skip to content

Commit

Permalink
build.sh now creates release archive for homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
masukomi committed May 26, 2018
1 parent 0beb8f4 commit ec7a448
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/bin/
/.shards/
oho
*.tgz
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
STASHED=0
VERSION="dev_version"
if [ "$1" != "" ]; then
VERSION=$1
git stash save "snapshot: $(date)"
STASHED=$?
if [ "$STASHED" == "0" ]; then
Expand All @@ -14,6 +16,14 @@ if [ $STASHED -eq 0 ]; then
git stash pop > /dev/null 2>&1
fi

version_dir="oho_$VERSION"
rm -rf $version_dir
mkdir $version_dir
cp oho $version_dir/
tar -czf $version_dir.tgz $version_dir
rm -rf $version_dir


# copy all the optional ones
# rm -rf dylibs/*
DYLIBS=`otool -L oho | grep "/opt" | awk -F' ' '{ print $1 }'`
Expand Down

0 comments on commit ec7a448

Please sign in to comment.