-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benn Bollay
committed
Mar 22, 2018
1 parent
f7231c1
commit 6e22e92
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |