mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
* make clean_sphinx a command function
* Move sphinx specific stuff to the sphinx command out of the etg command * Make it possible to not run the docs generator * Don't update some files unless they are newer or changed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,6 +17,7 @@ import glob
|
||||
import fnmatch
|
||||
import tempfile
|
||||
import commands
|
||||
import shutil
|
||||
|
||||
from distutils.file_util import copy_file
|
||||
from distutils.dir_util import mkpath
|
||||
@@ -586,3 +587,10 @@ def wxDir():
|
||||
assert WXWIN not in [None, '']
|
||||
return WXWIN
|
||||
|
||||
|
||||
def copyIfNewer(src, dest):
|
||||
if os.path.isdir(dest):
|
||||
dest = os.path.join(dest, os.path.basename(src))
|
||||
if newer(src, dest):
|
||||
shutil.copy(src, dest)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user