|
From: <md...@us...> - 2009-10-06 14:07:17
|
Revision: 7849
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7849&view=rev
Author: mdboom
Date: 2009-10-06 14:07:08 +0000 (Tue, 06 Oct 2009)
Log Message:
-----------
Don't do "make.py clean" in terms of svn-clean, since that doesn't work with a tarball.
Modified Paths:
--------------
branches/v0_99_maint/doc/make.py
Modified: branches/v0_99_maint/doc/make.py
===================================================================
--- branches/v0_99_maint/doc/make.py 2009-10-05 23:46:36 UTC (rev 7848)
+++ branches/v0_99_maint/doc/make.py 2009-10-06 14:07:08 UTC (rev 7849)
@@ -65,7 +65,18 @@
print 'latex build has not been tested on windows'
def clean():
- os.system('svn-clean')
+ shutil.rmtree("build")
+ shutil.rmtree("examples")
+ for pattern in ['doc/mpl_examples/api/*.png',
+ 'doc/mpl_examples/pylab_examples/*.png',
+ 'doc/mpl_examples/pylab_examples/*.pdf',
+ 'doc/mpl_examples/units/*.png',
+ 'doc/pyplots/tex_demo.png',
+ 'doc/_static/matplotlibrc',
+ 'doc/_templates/gallery.html']:
+ for filename in glob.glob(pattern):
+ if os.path.exists(filename):
+ os.remove(filename)
def all():
#figs()
@@ -86,6 +97,10 @@
small_docs = False
+# Change directory to the one containing this file
+current_dir = os.getcwd()
+os.chdir(os.path.dirname(os.path.join(current_dir, __file__)))
+
if len(sys.argv)>1:
if '--small' in sys.argv[1:]:
small_docs = True
@@ -99,3 +114,4 @@
else:
small_docs = False
all()
+os.chdir(current_dir)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|