~bruceteckel/python3patterns/main

« back to all changes in this revision

Viewing changes to build.py

  • Committer: Bruce Eckel
  • Date: 2008-11-05 21:15:36 UTC
  • Revision ID: bruceteckel@gmail.com-20081105211536-dwx1lgx4suw80rtt
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from builder import rule
2
 
import os
 
2
import os, shutil
3
3
 
4
4
@rule()
5
5
def html():
11
11
    "Create Windows Help file"
12
12
    os.system("make htmlhelp")
13
13
    os.chdir("_build/htmlhelp")
14
 
    os.system("/cygdrive/c/Program\ Files/HTML\ Help\ Workshop/hhc Python3PatternsIdiomsdoc.hhp")
 
14
    os.system(r"'C:\Program Files\HTML Help Workshop\hhc' Python3PatternsIdiomsdoc.hhp")
15
15
 
16
16
@rule()
17
17
def clean():
18
18
    "Remove files that have been built"
19
19
    os.system("make clean")
 
20
    shutil.rmtree("_test")
 
21
    shutil.rmtree("_code")
 
22
 
20
23
 
21
24
rule.main() # Does the build, handles command-line arguments