#!/usr/bin/python2 | |
import os | |
# Install infoedit | |
def run(): | |
print "\nINSTALLING infoedit" | |
print "***********************" | |
helper_path = os.path.dirname(os.path.realpath(__file__)) | |
cwd_path = os.getcwd() | |
#print helper_path | |
#print cwd_path | |
os.chdir(helper_path) | |
os.chdir("infoedit") | |
os.system("g++ -o infoedit -std=c++0x infoedit.cpp $(pkg-config --cflags --libs libndn-cxx)") | |
os.system("sudo mv infoedit /usr/local/bin/") | |
os.chdir(cwd_path) |