updateArkcmake.py
Go to the documentation of this file.
00001 #!/usr/bin/python
00002 # Author: Lenna X. Peterson (github.com/lennax)
00003 # Based on bash script by James Goppert (github.com/jgoppert)
00004 #
00005 # script used to update cmake modules from git repo, can't make this
00006 # a submodule otherwise it won't know how to interpret the CMakeLists.txt
00007 # # # # # # subprocess# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
00008 
00009 import os # for os.path
00010 import subprocess # for check_call()
00011 
00012 clone_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
00013 print(clone_path)
00014 os.chdir(clone_path)
00015 subprocess.check_call(["git", "clone", "git://github.com/arktools/arkcmake.git","arkcmake_tmp"])
00016 subprocess.check_call(["rm", "-rf", "arkcmake_tmp/.git"])
00017 if os.path.isdir("arkcmake"):
00018         subprocess.check_call(["rm", "-rf", "arkcmake"])
00019 subprocess.check_call(["mv", "arkcmake_tmp", "arkcmake"])


mavlink
Author(s): Lorenz Meier
autogenerated on Wed Sep 9 2015 18:06:17