Remove duplicate code in wscript after merge
This commit is contained in:
parent
a26e27d971
commit
95c5b99efc
6
wscript
6
wscript
|
@ -191,18 +191,12 @@ PROGRAM_VERSION = str (MAJOR.encode ('ascii', 'ignore'))
|
|||
VERSION = VERSION.replace('\'', '')
|
||||
PROGRAM_VERSION = PROGRAM_VERSION.replace('\'', '')
|
||||
|
||||
|
||||
if len (sys.argv) > 1 and sys.argv[1] == 'dist':
|
||||
if not 'APPNAME' in os.environ:
|
||||
print "You must define APPNAME in the environment when running ./waf dist"
|
||||
sys.exit (1)
|
||||
APPNAME = os.environ['APPNAME'];
|
||||
|
||||
# It seems, that on msys2, with python3, it puts quotes around
|
||||
# the version number, which breaks the build.
|
||||
VERSION = VERSION.replace('\'', '')
|
||||
PROGRAM_VERSION = PROGRAM_VERSION.replace('\'', '')
|
||||
|
||||
# Mandatory variables
|
||||
top = '.'
|
||||
out = 'build'
|
||||
|
|
Loading…
Reference in New Issue