]> git.sur5r.net Git - cc65/blob - Makefile.travis
Merge pull request #631 from blackystardust/master
[cc65] / Makefile.travis
1 .PHONY: all gh-pages sf-files
2
3 .SUFFIXES:
4
5 all: gh-pages sf-files
6
7 GH_NAME = Oliver Schmidt
8 GH_MAIL = ol.sc@web.de
9 GH_PATH = ../doc
10
11 gh-pages:
12 ifdef GH_TOKEN
13         @echo 'git clone --branch=gh-pages https://$$(GH_TOKEN)@github.com/cc65/doc.git $(GH_PATH)'
14         @git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/cc65/doc.git $(GH_PATH)
15         cd $(GH_PATH) && git config user.name "$(GH_NAME)"
16         cd $(GH_PATH) && git config user.email "$(GH_MAIL)"
17         cd $(GH_PATH) && git config push.default simple
18         $(RM) $(GH_PATH)/*.*
19         cp html/*.* $(GH_PATH)
20         cd $(GH_PATH) && git add -A
21         -cd $(GH_PATH) && git commit -m "Updated from commit $(TRAVIS_COMMIT)."
22         cd $(GH_PATH) && git push -q
23 endif
24
25 SF_USER = oliverschmidt
26 SF_HOST = frs.sourceforge.net
27 SF_FILE = /home/frs/project/cc65/cc65-snapshot-win32.zip
28
29 SCPFLAGS = -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -q
30
31 sf-files:
32 ifdef SF_PASS
33         echo $(TRAVIS_COMMIT) | zip -z cc65
34         @echo 'sshpass -p $$(SF_PASS) scp $(SCPFLAGS) cc65.zip $(SF_USER)@$(SF_HOST):$(SF_FILE)'
35         @sshpass -p $(SF_PASS) scp $(SCPFLAGS) cc65.zip $(SF_USER)@$(SF_HOST):$(SF_FILE)
36 endif