Skip to content

Commit

Permalink
Add platform to tarball name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Michaels-Bose committed Jan 29, 2016
1 parent 99e145c commit cffadf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ HSFILES=$(wildcard *.hs) $(wildcard Backends/*.hs) $(wildcard Grammars/*.hs) $(w
OSTYPE=$(shell uname -o)
ifeq ($(OSTYPE), Cygwin)
SMUDGE_EXE=smudge.exe
PLATFORM=windows
else
SMUDGE_EXE=smudge
PLATFORM=linux
endif
SMUDGE_TARGET=dist/build/smudge/$(SMUDGE_EXE)

Expand Down Expand Up @@ -50,7 +52,7 @@ release: build
cd docs/tutorial && make tutorial.pdf
cp docs/tutorial/tutorial.pdf dist/release/tutorial
cp README dist/release
./tar-up-release.sh $(SMUDGE_TARGET)
./tar-up-release.sh $(SMUDGE_TARGET) $(PLATFORM)


clean:
Expand Down
2 changes: 1 addition & 1 deletion tar-up-release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

VERSION=`$1 --version | cut -f 3 -d ' '`
tar -czf dist/smudge-$VERSION.tgz dist/release
tar -czf dist/smudge-$VERSION-$2.tgz dist/release

0 comments on commit cffadf7

Please sign in to comment.