|
Revision 98, 0.5 kB
(checked in by bjourne, 6 years ago)
|
Add script that automagically uploads the HTML documentation to Trac.
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 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)) |
|---|