mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-19 08:29:26 +01:00
Linux/scons: throw exception when curl configure or make fails
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# TTimo <ttimo@idsoftware.com>
|
||||
# http://scons.sourceforge.net
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import scons_utils
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user