root/gtkimageview/publish-docs.py

Revision 98, 0.5 kB (checked in by bjourne, 2 years ago)

Add script that automagically uploads the HTML documentation to Trac.

Line 
1 # -*- coding: utf-8 -*-
2 # This script uploads the HTML documentation for GtkImageView to the
3 # ssh account which it is hosted on.
4 from glob import glob
5 import os
6
7 SERVER = 'bjourne.webfactional.com'
8 REMOTE_PATH = '~/webapps/trac/htdocs/gtkimageview-docs/'
9 FILE_DIR = 'docs/reference/html/'
10 FILES = ' '.join(glob(FILE_DIR + "*.png") +
11                  glob(FILE_DIR + "*.html") +
12                  glob(FILE_DIR + "*.css"))
13
14 print 'Username:',
15 username = raw_input()
16
17 fmt = 'scp %s %s@%s:%s'
18 os.system(fmt % (FILES, username, SERVER, REMOTE_PATH))
Note: See TracBrowser for help on using the browser.