Files
ProgressQuest-web/publish.py
T
2010-07-14 23:09:50 -07:00

39 lines
703 B
Python
Executable File

#!/usr/bin/python
"""Publish this game here to server"""
import subprocess
manifest = [
"*.html",
"config.js",
"jquery.js",
"main.js",
"newguy.js",
"roster.js",
"*.gif",
"back.jpg",
"dicebar.jpg",
"close*.png",
"*.css"]
includes = sum(map(list, zip(["--include"] * len(manifest), manifest)), [])
server = "play.progressquest.com"
destination = "grumdrig.com:www/" + server + "/"
print manifest
output = subprocess.call(
["rsync",
#"--dry-run",
"--verbose",
"--compress",
"--recursive",
"--partial",
"--progress",
#"--itemize-changes",
"--delete",
"--delete-excluded",
"--times",
] + includes + [
"--exclude", "*",
"./",
destination])