diff --git a/travis.sh b/travis.sh index 4558889..8d8b5ca 100644 --- a/travis.sh +++ b/travis.sh @@ -1,3 +1,5 @@ +TAG=$(git describe --tags --long | sed -E -e 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g') + clean () { rm -rf *.tar.gz; rm -rf build; @@ -14,13 +16,11 @@ 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 () {