Skip to content

Commit

Permalink
Add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Bollay committed Mar 22, 2018
1 parent f7231c1 commit 6e22e92
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/run_doxygen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import subprocess, os, sys

# -- Doxygen Integration through Breath --------------------------------------

def run_doxygen(repo):
"""Run the doxygen make command in the designated folder"""

try:
rc = subprocess.call("git clone git@github.com:vm6502q/{0}.git /tmp/{0}".format(repo), shell=True)
if rc < 0:
sys.stderr.write("failed to clone repo {0}: {1}, {2}".format(repo))
return
except OSError as e:
sys.stderr.write("git clone {0} failed: {1}".format(repo, e))
return


try:
retcode = subprocess.call("cd /tmp/{0}; doxygen doxygen.config".format(repo), shell=True)
if retcode < 0:
sys.stderr.write("doxygen terminated by signal %s" % (-retcode))
return
except OSError as e:
sys.stderr.write("doxygen run for {0} failed: {1}".format(repo, e))
return

0 comments on commit 6e22e92

Please sign in to comment.