blob: 87ef0ff6382bb05d3a7a5f13aaa3cb824b83c80b [file] [log] [blame]
jeraldabraham5d4d7352014-03-28 02:49:04 -07001#!/usr/bin/python2
2import os
3
4# Install ndn-cpp-dev
5def run():
jeraldabraham5fdeecd2014-04-25 15:56:03 -07006 print "\nINSTALLING ndn-cxx"
jeraldabraham5d4d7352014-03-28 02:49:04 -07007 print "**********************"
jeraldabraham5fdeecd2014-04-25 15:56:03 -07008 os.system("git clone https://github.com/named-data/ndn-cxx --depth 1")
9 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")
15 os.system("cp client.conf.sample ~/.ndn/client.conf")
16 os.system("sed -i 's/^protocol=.*$/protocol=nfd-0.1/g' ~/.ndn/client.conf")
jeraldabraham5d4d7352014-03-28 02:49:04 -070017 os.chdir("..")