Skip to content

Commit

Permalink
Add recipes for releasing on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
fnogatz committed Oct 23, 2018
1 parent 27ec842 commit 3abf18c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: all test clean

version := $(shell swipl -q -s pack -g 'version(V),writeln(V)' -t halt)
packfile = edcgs-$(version).tgz

SWIPL := swipl

Expand All @@ -11,3 +12,9 @@ version:

test:
@$(SWIPL) -q -g 'main,halt(0)' -t 'halt(1)' -s test/test.pl

package: test
tar cvzf $(packfile) prolog test pack.pl README.md LICENSE

release: test
hub release create -m v$(version) v$(version)

0 comments on commit 3abf18c

Please sign in to comment.