fix man-page inclusion if directory already exists

This commit is contained in:
Adrian Sampson 2011-12-12 18:31:48 -08:00
parent c34e7dfc22
commit 76b90df4e1

View file

@ -36,7 +36,10 @@ if 'sdist' in sys.argv:
os.chdir(curdir)
# Copy resulting manpages.
shutil.copytree(os.path.join(docdir, '_build', 'man'), 'man')
mandir = os.path.join(os.path.dirname(__file__), 'man')
if os.path.exists(mandir):
shutil.rmtree(mandir)
shutil.copytree(os.path.join(docdir, '_build', 'man'), mandir)
setup(name='beets',
version='1.0b11',