Skip to content

Commit

Permalink
feature/585: fixed the broken link regarding feature/57 for org.geppe…
Browse files Browse the repository at this point in the history
…tto.docs
  • Loading branch information
ddelpiano committed Apr 6, 2018
1 parent ba137e3 commit 8de5e28
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions utilities/doc/update_javadocs.py
Expand Up @@ -10,12 +10,12 @@
import os, sys, getopt, subprocess, json, shutil
from subprocess import call

config = json.loads(open(os.path.join(os.path.dirname(__file__),
config = json.loads(open(os.path.join(os.path.dirname(__file__),
'../source_setup/config.json')).read())
sourcesdir = config['sourcesdir']
target_dir = os.path.abspath(config['sourcesdir'])
doc_dir = os.path.join(target_dir, 'org.geppetto.docs')
java_doc = os.path.join(doc_dir, 'source', 'javadoc')
java_doc = os.path.join(doc_dir, 'source', '_static', 'javadoc')
yes = set(['yes','y'])

def clone_repos():
Expand All @@ -35,11 +35,11 @@ def clone_repos():
else:
repo['auto_install'] = "no"
else:
repo['auto_install'] = "yes"
repo['auto_install'] = "yes"

def clone_docs():
if not os.path.exists(doc_dir):
subprocess.call(['git','clone','https://github.com/openworm/org.geppetto.docs'],
subprocess.call(['git','clone','https://github.com/openworm/org.geppetto.docs'],
cwd=target_dir)
else:
if os.path.exists(java_doc):
Expand Down Expand Up @@ -73,16 +73,16 @@ def commit_and_push():
commit_message = raw_input("Please, insert your commit message\n> ")
subprocess.call(['git',
'add',
'.'],
'.'],
cwd=java_doc)
subprocess.call(['git',
'commit',
'-m',
'{}'.format(commit_message)],
'-m',
'{}'.format(commit_message)],
cwd=java_doc)
subprocess.call(['git',
'push',
'origin'],
'origin'],
cwd=java_doc)

def main(argv):
Expand All @@ -93,4 +93,4 @@ def main(argv):


if __name__ == "__main__":
main(sys.argv[1:])
main(sys.argv[1:])

0 comments on commit 8de5e28

Please sign in to comment.