2014-03-09 00:20:39 +00:00
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
GH_PAGES = ../gh-pages
|
|
|
|
|
|
|
|
all:
|
2014-03-18 21:40:30 +00:00
|
|
|
echo $(TRAVIS_COMMIT) | zip -z cc65
|
2014-03-09 00:20:39 +00:00
|
|
|
ifdef GH_TOKEN
|
2014-03-15 13:53:33 +00:00
|
|
|
git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/cc65/cc65.git $(GH_PAGES)
|
2014-03-09 00:20:39 +00:00
|
|
|
cd $(GH_PAGES) && git config user.name "Oliver Schmidt"
|
|
|
|
cd $(GH_PAGES) && git config user.email "ol.sc@web.de"
|
|
|
|
cd $(GH_PAGES) && git config push.default simple
|
|
|
|
cd $(GH_PAGES) && $(RM) -r doc download
|
|
|
|
cd $(GH_PAGES) && mkdir doc download
|
|
|
|
cp html/*.* $(GH_PAGES)/doc
|
2014-03-09 12:56:32 +00:00
|
|
|
cp cc65.zip $(GH_PAGES)/download/cc65-snapshot-win32.zip
|
2014-03-09 00:20:39 +00:00
|
|
|
cd $(GH_PAGES) && git add -A doc download
|
|
|
|
cd $(GH_PAGES) && git commit -m "Updated from commit $(TRAVIS_COMMIT)."
|
|
|
|
cd $(GH_PAGES) && git push
|
|
|
|
endif
|