-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
executable file
·30 lines (23 loc) · 1004 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
BRANCH=$(shell git status|grep "On branch" | cut -f4 -d" ")
default:
@echo $(BRANCH)
pull:
rsync --exclude-from=rsync.exclude -rcv [email protected]:/var/www/yhack.net/apps/hacker-news-mini/ ./
fakepull:
rsync --exclude-from=rsync.exclude -rcvn [email protected]:/var/www/yhack.net/apps/hacker-news-mini/./
push:
ifeq ($(BRANCH),master)
rsync --exclude-from=rsync.exclude -rcv ./ [email protected]:/var/www/yhack.net/apps/hacker-news-mini/
else
@echo "Push must be done from master foo!"
endif
push_delete:
ifeq ($(BRANCH),master)
rsync --exclude-from=rsync.exclude -rcv --delete ./ [email protected]:/var/www/yhack.net/apps/hacker-news-mini/
else
@echo "Push must be done from master foo!"
endif
fakepush:
rsync --exclude-from=rsync.exclude -rcvn ./ [email protected]:/var/www/yhack.net/apps/hacker-news-mini/
fakepush_delete:
rsync --exclude-from=rsync.exclude -rcvn --delete ./ [email protected]:/var/www/yhack.net/apps/hacker-news-mini/