--- a/dce_binary.py Fri Nov 12 12:53:35 2010 +0900
+++ b/dce_binary.py Thu Nov 24 19:03:11 2011 +0900
@@ -8,26 +8,26 @@
try:
os.mkdir(os.path.join(os.getcwd(), DCE_BUILD_DIR))
except OSError:
- print "could't mkdir"
+ print "could't mkdir or already exists"
exit
try:
os.mkdir(os.path.join(os.getcwd(), "build"))
os.mkdir(os.path.join(os.getcwd(), "build/debug"))
except OSError:
- print "could't mkdir"
+ print "could't mkdir or already exists"
exit
def build_iproute():
os.chdir(DCE_BUILD_DIR)
- cmd = ["wget", "http://devresources.linuxfoundation.org/dev/iproute2/download/iproute2-2.6.33.tar.bz2"]
+ cmd = ["wget", "http://www.linuxgrill.com/anonymous/iproute2/NEW-OSDL/iproute2-2.6.38.tar.bz2"]
print " => ", ' '.join(cmd)
subprocess.Popen(cmd).wait()
- cmd = ["tar", "jxf", "iproute2-2.6.33.tar.bz2"]
+ cmd = ["tar", "jxf", "iproute2-2.6.38.tar.bz2"]
print " => ", ' '.join(cmd)
subprocess.Popen(cmd).wait()
- os.chdir("./iproute2-2.6.33/")
+ os.chdir("./iproute2-2.6.38/")
cmd = ["./configure"]
print " => ", ' '.join(cmd)
@@ -44,7 +44,7 @@
def build_umip():
os.chdir(DCE_BUILD_DIR)
- UMIP_GIT_URL = 'http://www.umip.org/git/umip.git'
+ UMIP_GIT_URL = 'git://git.umip.org/umip.git'
UMIP_GIT_DIR = 'umip'
"""
@@ -153,12 +153,11 @@
return False
os.chdir("./ns-3-linux/")
-
- # it will failed under ubuntu (cause /bin/dash)
- cmd = ["/bin/bash", "-c", "make .download.ts"]
+ cmd = ["git", "clone", "git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git", "net-next-2.6"]
print " => ", ' '.join(cmd)
subprocess.Popen(cmd).wait()
+ # it will failed under ubuntu (cause /bin/dash)
os.chdir("./net-next-2.6/")
cmd = ["git", "reset", "--hard", "fed66381d65a35198639f564365e61a7f256bf79"]
print " => ", ' '.join(cmd)