blob: 737f923ea75bc917f17c4b165a048278ba1609bb [file] [log] [blame]
Yanbiao Lia8a7d272015-07-20 17:28:45 -07001#!/usr/bin/python2
2import os
3
4# Install infoedit
5def 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)