jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 1 | #!/usr/bin/python2 |
| 2 | import os |
| 3 | |
| 4 | # Install ndn-cpp-dev |
| 5 | def run(): |
jeraldabraham | 5fdeecd | 2014-04-25 15:56:03 -0700 | [diff] [blame] | 6 | print "\nINSTALLING ndn-cxx" |
jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 7 | print "**********************" |
jeraldabraham | 5fdeecd | 2014-04-25 15:56:03 -0700 | [diff] [blame] | 8 | os.system("git clone https://github.com/named-data/ndn-cxx --depth 1") |
| 9 | os.chdir("ndn-cxx") |
jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 10 | os.system("./waf distclean") |
| 11 | os.system("./waf configure") |
| 12 | os.system("./waf -j1") |
| 13 | os.system("sudo ./waf install") |
Yi Huang | 9a118b3 | 2014-04-22 15:17:51 -0700 | [diff] [blame] | 14 | os.system("mkdir -p ~/.ndn") |
jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 15 | os.chdir("..") |