From 14a6aa4c488bcd2d49103cbee1424b2769d77ce0 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 12 Aug 2016 14:05:45 +0200 Subject: Initial import --- orig/pq-web/publish.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 orig/pq-web/publish.py (limited to 'orig/pq-web/publish.py') diff --git a/orig/pq-web/publish.py b/orig/pq-web/publish.py new file mode 100755 index 0000000..1915ab9 --- /dev/null +++ b/orig/pq-web/publish.py @@ -0,0 +1,45 @@ +#!/usr/bin/python +"""Publish this game here to server""" + +import subprocess, sys + +manifest = [ + "*.html", + "json2.js", + "config.js", + "jquery.js", + "main.js", + "newguy.js", + "roster.js", + "*.gif", + "back.jpg", + "dicebar.jpg", + "close*.png", + "touch-icon.png", + "ipad-ad.jpg", + "*.css"] +includes = sum(map(list, zip(["--include"] * len(manifest), manifest)), []) +destination = "progressquest.com:www/progressquest.com/play/" + +print manifest +args = ( + ["rsync"] + + sys.argv[1:] + + [#"--dry-run", + "--verbose", + "--compress", + "--checksum", + "--recursive", + "--partial", + "--progress", + #"--itemize-changes", + "--delete", + "--delete-excluded", + "--times"] + + includes + + ["--exclude", "*", + "./", + destination]) + +print args +output = subprocess.call(args) -- cgit v1.2.3