Package doconce :: Module _update
[hide private]
[frames] | no frames]

Source Code for Module doconce._update

 1  #!/usr/bin/env python 
 2  if __name__ == '__main__': 
 3      # (important to not execute anything for epydoc) 
 4      import os 
 5      # the insertdocstr script is part of the Doconce package 
 6      os.system('python ../../bin/doconce insertdocstr plain . ') 
 7   
 8      # pack sphinx_themes.zip 
 9      os.system('zip -r shpinx_themes.zip sphinx_themes') 
10   
11      # remove files that are to be regenerated: 
12      os.chdir(os.path.join(os.pardir, os.pardir)) 
13      thisdir = os.getcwd() 
14      os.chdir(os.path.join('lib', 'doconce', 'docstrings')) 
15      failure = os.system('sh ./clean.sh') 
16      if failure: 
17          print 'Could not run clean.sh in', os.getcwd() 
18      os.chdir(thisdir) 
19      os.chdir(os.path.join('doc', 'tutorial')) 
20      failure = os.system('sh ./clean.sh') 
21      if failure: 
22          print 'Could not run clean.sh in', os.getcwd() 
23      os.chdir(thisdir) 
24      os.chdir(os.path.join('doc', 'manual')) 
25      failure = os.system('sh ./clean.sh') 
26      if failure: 
27          print 'Could not run clean.sh in', os.getcwd() 
28      os.chdir(thisdir) 
29      os.chdir('test') 
30      failure = os.system('sh ./clean.sh') 
31      if failure: 
32          print 'Could not run clean.sh in', os.getcwd() 
33      os.chdir(thisdir) 
34