~ubuntu-branches/ubuntu/precise/enigmail/precise-security

« back to all changes in this revision

Viewing changes to python/simplejson-2.1.1/scripts/make_docs.py

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-11-12 16:36:01 UTC
  • mfrom: (0.12.15)
  • Revision ID: package-import@ubuntu.com-20121112163601-t8e8skdfi3ni9iqp
Tags: 2:1.4.6-0ubuntu0.12.04.1
* New upstream release v1.4.6
  - see LP: #1080212 for USN information
* Drop unneeded patches
  - remove debian/patches/correct-version-number.diff
  - remove debian/patches/dont_register_cids_multiple_times.diff
  - update debian/patches/series
* Support building in an objdir
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
import os
 
3
import subprocess
 
4
import shutil
 
5
 
 
6
SPHINX_BUILD = 'sphinx-build'
 
7
 
 
8
DOCTREES_DIR = 'build/doctrees'
 
9
HTML_DIR = 'docs'
 
10
for dirname in DOCTREES_DIR, HTML_DIR:
 
11
    if not os.path.exists(dirname):
 
12
        os.makedirs(dirname)
 
13
 
 
14
res = subprocess.call([
 
15
    SPHINX_BUILD, '-d', DOCTREES_DIR, '-b', 'html', '.', 'docs',
 
16
])
 
17
raise SystemExit(res)