-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
49 lines (36 loc) · 1.64 KB
/
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
include *.variables
ANT := ant -lib lib
RSYNC := rsync --verbose --recursive --checksum --chmod=Du=rwx,Dgo=rx,Fu=rw,Fog=r --keep-dirlinks --copy-links --progress --human-readable --prune-empty-dirs --exclude BETA --exclude HEAD --exclude .gitignore --exclude .DS_Store
GZ_FILES := --include='*/' --include='*.gz' --exclude='*'
MIRROR_FILES := --delete
update-website:
make website push-website purge-cache
pull-release:
find get.filebot.net -type f -name '*.sha256' -delete
$(RSYNC) $(FRS_USER)@$(FRS_HOST):~/get.filebot.net .
$(RSYNC) $(GZ_FILES) $(FRS_USER)@$(FRS_HOST):~/logs .
push-website:
$(RSYNC) dist/filebot.net/ $(WWW_USER)@$(WWW_HOST):~/filebot.net/
push-release:
$(RSYNC) --exclude 'FileBot_*' get.filebot.net/ $(FRS_USER)@$(FRS_HOST):~/get.filebot.net/
push-repository:
$(RSYNC) $(MIRROR_FILES) get.filebot.net/deb/ $(FRS_USER)@$(FRS_HOST):~/get.filebot.net/deb/
$(RSYNC) $(MIRROR_FILES) get.filebot.net/rpm/ $(FRS_USER)@$(FRS_HOST):~/get.filebot.net/rpm/
$(RSYNC) $(MIRROR_FILES) get.filebot.net/syno/ $(FRS_USER)@$(FRS_HOST):~/get.filebot.net/syno/
$(RSYNC) $(MIRROR_FILES) get.filebot.net/qnap/ $(FRS_USER)@$(FRS_HOST):~/get.filebot.net/qnap/
website:
$(ANT) website
repository:
$(ANT) deb rpm syno qnap
purge-cache:
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/$(CF_ZONE_ID)/purge_cache" -H "X-Auth-Email: $(CF_AUTH_EMAIL)" -H "X-Auth-Key: $(CF_AUTH_KEY)" -H "Content-Type: application/json" --data '{"purge_everything":true}'
sync:
make pull-release clean push-release
make website push-website
make repository push-repository
make purge-cache
clean:
-rm -rv dist
git reset --hard
git pull
git --no-pager log -1