Main Page
Namespaces
Classes
Files
File List
File Members
cmake
arkcmake
updateArkcmake.py
Go to the documentation of this file.
1
#!/usr/bin/python
2
# Author: Lenna X. Peterson (github.com/lennax)
3
# Based on bash script by James Goppert (github.com/jgoppert)
4
#
5
# script used to update cmake modules from git repo, can't make this
6
# a submodule otherwise it won't know how to interpret the CMakeLists.txt
7
# # # # # # subprocess# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
8
9
import
os
# for os.path
10
import
subprocess
# for check_call()
11
12
clone_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
13
print(clone_path)
14
os.chdir(clone_path)
15
subprocess.check_call([
"git"
,
"clone"
,
"git://github.com/arktools/arkcmake.git"
,
"arkcmake_tmp"
])
16
subprocess.check_call([
"rm"
,
"-rf"
,
"arkcmake_tmp/.git"
])
17
if
os.path.isdir(
"arkcmake"
):
18
subprocess.check_call([
"rm"
,
"-rf"
,
"arkcmake"
])
19
subprocess.check_call([
"mv"
,
"arkcmake_tmp"
,
"arkcmake"
])
mavlink
Author(s): Lorenz Meier
autogenerated on Sun Apr 7 2019 02:06:02