blob: 54fac0d49cbe9c7298c36a5815342bf5ff27f461 [file] [log] [blame]
jeraldabraham5d4d7352014-03-28 02:49:04 -07001#!/usr/bin/python2
2import os
3
Junxiao Shiad3de3e2015-02-14 11:32:32 -07004# Install ndn-cxx
jeraldabraham5d4d7352014-03-28 02:49:04 -07005def run():
jeraldabraham5fdeecd2014-04-25 15:56:03 -07006 print "\nINSTALLING ndn-cxx"
jeraldabraham5d4d7352014-03-28 02:49:04 -07007 print "**********************"
Junxiao Shi33a6ee12016-12-26 18:59:38 +00008 os.system("git clone --depth 1 https://github.com/named-data/ndn-cxx")
jeraldabraham5fdeecd2014-04-25 15:56:03 -07009 os.chdir("ndn-cxx")
jeraldabraham5d4d7352014-03-28 02:49:04 -070010 os.system("./waf distclean")
11 os.system("./waf configure")
12 os.system("./waf -j1")
13 os.system("sudo ./waf install")
Yi Huang9a118b32014-04-22 15:17:51 -070014 os.system("mkdir -p ~/.ndn")
Eric Newberry9a129692015-07-29 16:25:46 -070015 os.system("sudo ldconfig")
jeraldabraham5d4d7352014-03-28 02:49:04 -070016 os.chdir("..")