mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
provide a mechanism for ./waf dist to work without hardcoding APPNAME in wscript
This commit is contained in:
parent
88229c4bef
commit
c2d6249370
1 changed files with 7 additions and 0 deletions
7
wscript
7
wscript
|
|
@ -186,6 +186,13 @@ V = MAJOR + '.' + MINOR + '.' + MICRO
|
|||
VERSION = str (V.encode ('ascii', 'ignore'))
|
||||
PROGRAM_VERSION = str (MAJOR.encode ('ascii', 'ignore'))
|
||||
|
||||
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'];
|
||||
|
||||
|
||||
# Mandatory variables
|
||||
top = '.'
|
||||
out = 'build'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue