]> git.sur5r.net Git - cc65/commitdiff
Upload zip file.
authorOliver Schmidt <ol.sc@web.de>
Sun, 9 Mar 2014 00:20:39 +0000 (01:20 +0100)
committerOliver Schmidt <ol.sc@web.de>
Sun, 9 Mar 2014 00:20:39 +0000 (01:20 +0100)
.travis.yml
Makefile.gh-pages [new file with mode: 0644]
doc/Makefile
libsrc/Makefile
src/Makefile

index 088ee69aac3b8c15adf2f5da6d91edab4fc905bd..3a9583e9448e16768d1992654a7fb2d752803738 100644 (file)
@@ -7,7 +7,7 @@ script:
   - make -C src clean all CROSS_COMPILE=i686-w64-mingw32-
   - make doc zip
 after_success:
-  - make -C doc gh-pages
+  - make -f Makefile.gh-pages
 env:
   global:
     - secure: "h+hoQdEHGPLNwaqGKmSaM8NBRDLc2X+W05VsnNG2Feq/wPv/AiBjONNlzN7jRf6D6f3aoPXaQ2Lc3bYWdxGvFRCmwiofdxkJI9n5L8HPHLZ2lf37MQsXmGJzoTFOvjPLj73H6HlbI9Ux0El3zO6hvalxiXj6TfoZ41dbhNyvpYk="
diff --git a/Makefile.gh-pages b/Makefile.gh-pages
new file mode 100644 (file)
index 0000000..573edfe
--- /dev/null
@@ -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
index 207a331f36750d34f93a3119c9007087e2e3fa98..159c300210a95c6591d88f8b7928ea51b10ebc19 100644 (file)
@@ -21,13 +21,11 @@ TOC_LEVEL = 0
 
 TOC_LEVEL = 2
 
-GH_PAGES = ../../gh-pages
-
 clean:
        $(RM) -r ../html ../info
 
 zip:
-       cd .. && zip cc65 html/*.*
+       @cd .. && zip cc65 html/*.*
 
 doc: html info
 
@@ -47,18 +45,4 @@ info: $(addprefix ../info/,$(SGMLS:.sgml=.info))
 ../info/%.info: %.sgml | ../info
        @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
index 877a22950ca6f2f1c60594fa51ac3f2772f5143e..3a355b954c714846b84dcf14be1ff96a6f88cb19 100644 (file)
@@ -98,7 +98,7 @@ endif # CMD_EXE
 
 define ZIP_recipe
 
-cd .. && zip cc65 $(dir)/*.*
+@cd .. && zip cc65 $(dir)/*.*
 
 endef # ZIP_recipe
 
index 17e3bc22972735dc5ca9f323713d991ff3ff4145..81f28dee5ae3f2d5db0aab885313468e623ae3c7 100644 (file)
@@ -98,7 +98,7 @@ unavail:
 endif # CMD_EXE
 
 zip:
-       cd .. && zip cc65 bin/*
+       @cd .. && zip cc65 bin/*
 
 define OBJS_template