forked from GENI-NSF/geni-ch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.sync
More file actions
61 lines (42 loc) · 1.5 KB
/
Makefile.sync
File metadata and controls
61 lines (42 loc) · 1.5 KB
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
61
# -*- mode: Makefile -*-
# To delete extraneous files on the remote side, do the following:
#
# make RSYNC='/usr/bin/rsync --delete --delete-excluded' -f Makefile.sync synci
#
RSYNC = /usr/bin/rsync
RSYNC_EXCLUDE = --exclude .git --exclude '*~' \
--exclude '\#*\#' --exclude '.\#*'
RSYNC_DELETE = --delete --delete-excluded
RSYNC_ARGS = -aztv $(RSYNC_EXCLUDE)
GITHASH = etc/geni-chapi-githash
.PHONY: syncb syncd syncm synci syncs synct syncp syncc
default:
echo "Choose a specific sync target."
$(GITHASH): .git
git rev-parse HEAD > $@
synca: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi algonquin.gpolab.bbn.com:
syncb: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi bigslide.gpolab.bbn.com:
syncd: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi dagoola.gpolab.bbn.com:
synce: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi emmons.gpolab.bbn.com:
synch: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi haystack.gpolab.bbn.com:
syncm: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi marilac.gpolab.bbn.com:
synci: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi illyrica.gpolab.bbn.com:
syncs: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi sergyar.gpolab.bbn.com:
synct: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi tau-ceti.gpolab.bbn.com:
synctop: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi tabletop.gpolab.bbn.com:
syncp: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi panther.gpolab.bbn.com:
syncc: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi cascade.gpolab.bbn.com:
syncn: $(GITHASH)
$(RSYNC) $(RSYNC_ARGS) ../chapi nye.gpolab.bbn.com: