1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 06:30:16 +00:00

Upload zip file.

This commit is contained in:
Oliver Schmidt 2014-03-09 01:20:39 +01:00
parent 80ca7eb4e4
commit 8236b0dd74
5 changed files with 25 additions and 20 deletions

View File

@ -7,7 +7,7 @@ script:
- make -C src clean all CROSS_COMPILE=i686-w64-mingw32- - make -C src clean all CROSS_COMPILE=i686-w64-mingw32-
- make doc zip - make doc zip
after_success: after_success:
- make -C doc gh-pages - make -f Makefile.gh-pages
env: env:
global: global:
- secure: "h+hoQdEHGPLNwaqGKmSaM8NBRDLc2X+W05VsnNG2Feq/wPv/AiBjONNlzN7jRf6D6f3aoPXaQ2Lc3bYWdxGvFRCmwiofdxkJI9n5L8HPHLZ2lf37MQsXmGJzoTFOvjPLj73H6HlbI9Ux0El3zO6hvalxiXj6TfoZ41dbhNyvpYk=" - secure: "h+hoQdEHGPLNwaqGKmSaM8NBRDLc2X+W05VsnNG2Feq/wPv/AiBjONNlzN7jRf6D6f3aoPXaQ2Lc3bYWdxGvFRCmwiofdxkJI9n5L8HPHLZ2lf37MQsXmGJzoTFOvjPLj73H6HlbI9Ux0El3zO6hvalxiXj6TfoZ41dbhNyvpYk="

21
Makefile.gh-pages Normal file
View File

@ -0,0 +1,21 @@
.PHONY: all
.SUFFIXES:
GH_PAGES = ../gh-pages
all:
date +%D | zip -z cc65
ifdef GH_TOKEN
git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/oliverschmidt/cc65.git $(GH_PAGES)
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
cp cc65.zip $(GH_PAGES)/download/cc65-snapshot.zip
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

View File

@ -21,13 +21,11 @@ TOC_LEVEL = 0
TOC_LEVEL = 2 TOC_LEVEL = 2
GH_PAGES = ../../gh-pages
clean: clean:
$(RM) -r ../html ../info $(RM) -r ../html ../info
zip: zip:
cd .. && zip cc65 html/*.* @cd .. && zip cc65 html/*.*
doc: html info doc: html info
@ -47,18 +45,4 @@ info: $(addprefix ../info/,$(SGMLS:.sgml=.info))
../info/%.info: %.sgml | ../info ../info/%.info: %.sgml | ../info
@cd ../info && linuxdoc -B info ../doc/$< @cd ../info && linuxdoc -B info ../doc/$<
gh-pages: html
ifdef GH_TOKEN
git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/oliverschmidt/cc65.git $(GH_PAGES)
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git config user.name "Oliver Schmidt"
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git config user.email "ol.sc@web.de"
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git config push.default simple
$(RM) -r $(GH_PAGES)/doc
mkdir $(GH_PAGES)/doc
cp ../html/* $(GH_PAGES)/doc
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git add -A doc
-git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git commit -m "Updated doc from commit $(TRAVIS_COMMIT)."
git --work-tree=$(GH_PAGES) --git-dir=$(GH_PAGES)/.git push
endif
endif # CMD_EXE endif # CMD_EXE

View File

@ -98,7 +98,7 @@ endif # CMD_EXE
define ZIP_recipe define ZIP_recipe
cd .. && zip cc65 $(dir)/*.* @cd .. && zip cc65 $(dir)/*.*
endef # ZIP_recipe endef # ZIP_recipe

View File

@ -98,7 +98,7 @@ unavail:
endif # CMD_EXE endif # CMD_EXE
zip: zip:
cd .. && zip cc65 bin/* @cd .. && zip cc65 bin/*
define OBJS_template define OBJS_template