Skip to content

Commit

Permalink
fix sed in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
goodmind committed Jul 26, 2016
1 parent 3fcecd6 commit d1ee5a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions travis.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
TAG=$(git describe --tags --long | sed -r -e 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g')

clean () {
rm -rf *.tar.gz;
rm -rf build;
Expand All @@ -16,11 +14,13 @@ compress () {
build_darwin () {
raco exe -o build/infornography infornography-macos.rkt;
export PLATFORM="darwin"
export TAG=$(git describe --tags --long | sed -r -e 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g')
}

build_linux () {
raco exe -o build/infornography infornography.rkt;
export PLATFORM="linux"
export TAG=$(git describe --tags --long | sed -E -e 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g')
}

build () {
Expand Down

0 comments on commit d1ee5a0

Please sign in to comment.