Skip to content

Commit

Permalink
Linux/scons: throw exception when curl configure or make fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothee TTimo Besset committed Dec 4, 2011
1 parent 847dc3b commit f1f8064
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions neo/sys/scons/SConscript.curl
Expand Up @@ -3,7 +3,7 @@
# TTimo <ttimo@idsoftware.com>
# http://scons.sourceforge.net

import os
import subprocess

import scons_utils

Expand All @@ -19,12 +19,12 @@ class idBuildCurl( scons_utils.idSetupBase ):
cmd += '--enable-debug'
else:
cmd += '--disable-debug'
os.system( cmd )
os.system( 'cd curl ; make' )
subprocess.check_call( cmd, shell = True )
subprocess.check_call( 'cd curl ; make', shell = True )
if ( self.debug ):
os.system( 'cd curl ; mv ./lib/.libs/libcurl.a ./lib/.libs/libcurl-debug.a' )
subprocess.check_call( 'cd curl ; mv ./lib/.libs/libcurl.a ./lib/.libs/libcurl-debug.a', shell = True )
else:
os.system( 'cd curl ; mv ./lib/.libs/libcurl.a ./lib/.libs/libcurl-release.a' )
subprocess.check_call( 'cd curl ; mv ./lib/.libs/libcurl.a ./lib/.libs/libcurl-release.a', shell = True )
return 0

build = idBuildCurl()
Expand Down

0 comments on commit f1f8064

Please sign in to comment.