File: Makefile

package info (click to toggle)
shove 0.8.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 160 kB
  • sloc: sh: 196; makefile: 39
file content (37 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: test shpec release

BIN     := bin/shove
VERSION := $(shell $(BIN) -V)

SHELLS := sh bash dash ksh zsh

test:
	@set -e; \
	for sh in $(SHELLS); do \
		if which $$sh >/dev/null 2>&1; then \
			$(BIN) -r t -v -s $$sh; \
		else \
			echo "$$sh is not found. skip."; \
		fi; \
	done

shpec:
	@if ! which shpec >/dev/null 2>&1; then \
		echo "shpec not found. quit."; \
		exit 1; \
	fi
	@set -e; \
	for sh in $(SHELLS); do \
		if which $$sh >/dev/null 2>&1; then \
			echo "# shpec by $$sh"; \
			$$sh `which shpec`; \
		else \
			echo "$$sh is not found. skip."; \
		fi; \
	done

release:
	git commit -m $(VERSION)
	git tag -a v$(VERSION) -m $(VERSION)
	git push origin v$(VERSION)
	git push origin master