-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·60 lines (43 loc) · 948 Bytes
/
Makefile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!make
BIN ?= fork.sh
PREFIX ?= /usr/local
install:
install ./fork.sh $(PREFIX)/bin/$(BIN)
uninstall:
rm -f $(PREFIX)/bin/$(BIN)
release: push
push:
git config credential.helper 'cache --timeout=3600'
git pull
git add .
git commit -am "Release" || true
git push
docker build -t javanile/fork.sh:macos .
docker push javanile/fork.sh:macos
fork:
curl -sL git.io/fork.sh | bash -
lint:
shellcheck *.sh
## -------
## Testing
## -------
test: test-hard test-inheritance test-prototype test-source test-update
@echo "FORK.SH Test Done."
test-hard:
@bash test/hard-test.sh
test-inheritance:
@bash test/inheritance-test.sh
test-missing-forkfile:
@bash test/missing-forkfile-test.sh
test-move:
@bash test/move-test.sh
test-prototype:
@bash test/prototype-test.sh
test-source:
@bash test/source-test.sh
test-touch:
@bash test/touch-test.sh
test-update:
@bash test/update-test.sh
test-dircopy:
@bash test/dircopy-test.sh