]> git.sur5r.net Git - cc65/commitdiff
Moved Windows binary snapshot to SourceForge.
authorOliver Schmidt <ol.sc@web.de>
Thu, 30 Oct 2014 21:15:45 +0000 (22:15 +0100)
committerOliver Schmidt <ol.sc@web.de>
Thu, 30 Oct 2014 21:20:02 +0000 (22:20 +0100)
.travis.yml
Makefile.gh-pages
Makefile.sf-files [new file with mode: 0644]

index eae13f70ef177e8e0f21c4498e65b301ddd8eb91..f0207c80ecc3d4db4197e027e3925f949b59e7cc 100644 (file)
@@ -1,7 +1,7 @@
 language:
   - c
 install:
-  - sudo apt-get install linuxdoc-tools linuxdoc-tools-info binutils-mingw-w64-i686 gcc-mingw-w64-i686
+  - sudo apt-get install linuxdoc-tools linuxdoc-tools-info binutils-mingw-w64-i686 gcc-mingw-w64-i686 sshpass
 script:
   - make bin USER_CFLAGS=-Werror
   - make lib QUIET=1
@@ -10,6 +10,8 @@ script:
   - make doc zip
 after_success:
   - make -f Makefile.gh-pages
+  - make -f Makefile.sf-files
 env:
   global:
     - secure: "h+hoQdEHGPLNwaqGKmSaM8NBRDLc2X+W05VsnNG2Feq/wPv/AiBjONNlzN7jRf6D6f3aoPXaQ2Lc3bYWdxGvFRCmwiofdxkJI9n5L8HPHLZ2lf37MQsXmGJzoTFOvjPLj73H6HlbI9Ux0El3zO6hvalxiXj6TfoZ41dbhNyvpYk="
+    - secure: "A4hMEe5RRfUtYjFGbT7QAvT1Tyo434N+/TiuQeQ4q0L46c79LnXuGQzbFLOFZshZiplLkJr7lFg466CoI1bf2L0cQOew/LesMhE75v0HQ7tZnExWhdpAk0ri6nWixbjn/dmQ0+HxjzJ48A44DMMBYcvSIsO4vflvuJ8etfSg42k="
index 4c6734ca64f623d8ecbb42d4784df05b8378b5e5..39b49753848e15c6abf0e66d3228d0d80fb99d34 100644 (file)
@@ -5,17 +5,16 @@
 GH_PAGES = ../gh-pages
 
 all:
-       echo $(TRAVIS_COMMIT) | zip -z cc65
 ifdef GH_TOKEN
-       git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/cc65/cc65.git $(GH_PAGES)
+       @echo 'git clone --branch=gh-pages https://$$(GH_TOKEN)@github.com/cc65/cc65.git $(GH_PAGES)'
+       @git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/cc65/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
+       cd $(GH_PAGES) && $(RM) -r doc
+       cd $(GH_PAGES) && mkdir doc
        cp html/*.* $(GH_PAGES)/doc
-       cp cc65.zip $(GH_PAGES)/download/cc65-snapshot-win32.zip
-       cd $(GH_PAGES) && git add -A doc download
+       cd $(GH_PAGES) && git add -A doc
        cd $(GH_PAGES) && git commit -m "Updated from commit $(TRAVIS_COMMIT)."
        cd $(GH_PAGES) && git push
 endif
diff --git a/Makefile.sf-files b/Makefile.sf-files
new file mode 100644 (file)
index 0000000..67c00e7
--- /dev/null
@@ -0,0 +1,16 @@
+.PHONY: all
+
+.SUFFIXES:
+
+SCPFLAGS = -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
+
+SF_USER = oliverschmidt
+SF_HOST = frs.sourceforge.net
+SF_FILE = /home/frs/project/cc65/cc65-snapshot-win64.zip
+
+all:
+       echo $(TRAVIS_COMMIT) | zip -z cc65
+ifdef SF_PASS
+       @echo 'sshpass -p $$(SF_PASS) scp $(SCPFLAGS) cc65.zip $(SF_USER)@$(SF_HOST):$(SF_FILE)'
+       @sshpass -p $(SF_PASS) scp $(SCPFLAGS) cc65.zip $(SF_USER)@$(SF_HOST):$(SF_FILE)
+endif