Yanbiao Li | a8a7d27 | 2015-07-20 17:28:45 -0700 | [diff] [blame] | 1 | #!/usr/bin/python2 |
| 2 | import os |
| 3 | |
| 4 | # Install infoedit |
| 5 | def run(): |
| 6 | print "\nINSTALLING infoedit" |
| 7 | print "***********************" |
| 8 | helper_path = os.path.dirname(os.path.realpath(__file__)) |
| 9 | cwd_path = os.getcwd() |
| 10 | #print helper_path |
| 11 | #print cwd_path |
| 12 | os.chdir(helper_path) |
| 13 | os.chdir("infoedit") |
| 14 | os.system("g++ -o infoedit -std=c++0x infoedit.cpp $(pkg-config --cflags --libs libndn-cxx)") |
| 15 | os.system("sudo mv infoedit /usr/local/bin/") |
| 16 | os.chdir(cwd_path) |