 	exec "git log --pretty=format:\"%h\t%an\t%ad\t%s\" --first-parent master", (err, output) ->
 		throw err if err
 
+		console.log output
+
 		start = false
 
 		for line in output.split "\n"

uploadFile = (path, remotePath="") ->

	console.log "Upload #{path} -> #{remotePath}"

	buffer = fs.readFileSync path
	headers =

	gzipExtensions: [".js", ".html", ".css", ".map"]
	startAt: "2e97990"


###############################################################
# Parse the command line
main = ->
	exec "git config --local --get remote.origin.url", (err, output) ->
		output = output.trim()
		if output != "git@github.com:koenbok/framer.git"
			throw Error("Not the right repo!", output)
		_main()

_main = ->

	COMMANDS =
		"upload": -> uploadDir Config.output
