jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 1 | #!/usr/bin/python2 |
| 2 | import os |
| 3 | |
Junxiao Shi | ad3de3e | 2015-02-14 11:32:32 -0700 | [diff] [blame] | 4 | # Install ndn-cxx |
jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 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") |
Eric Newberry | 9a12969 | 2015-07-29 16:25:46 -0700 | [diff] [blame] | 15 | os.system("sudo ldconfig") |
jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 16 | os.chdir("..") |