1 .PHONY: all gh-pages sf-files
7 GH_NAME = Oliver Schmidt
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
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
25 SF_USER = oliverschmidt
26 SF_HOST = frs.sourceforge.net
27 SF_FILE = /home/frs/project/cc65/cc65-snapshot-win32.zip
29 SCPFLAGS = -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -q
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)