summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorNils Philippsen <nils@tiptoe.de>2020-04-25 12:36:00 +0200
committerPaul Davis <paul@linuxaudiosystems.com>2020-04-25 10:39:29 -0600
commit845d7d3a3b5727a084dee9f5690cc88482673256 (patch)
tree592a00116195fd18a6a2717218f8a84f43dc5d14 /wscript
parent02e5605cdd2d248c185bcbb995456161dd2c4d21 (diff)
Recognize dist, distcheck better to set app name
Previously, `dist` had to be the first argument to waf. If it came in a different position (e.g. `APPNAME=Ardour ./waf tarball dist`) or `distcheck` was used instead of `dist`, the resulting archive was named `noname-....tar.bz2`. Signed-off-by: Nils Philippsen <nils@tiptoe.de>
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript b/wscript
index 5375272182..ea6e5e4ec9 100644
--- a/wscript
+++ b/wscript
@@ -222,9 +222,9 @@ VERSION = sanitize(V)
PROGRAM_VERSION = sanitize(MAJOR)
del sanitize
-if len (sys.argv) > 1 and sys.argv[1] == 'dist':
+if any(arg in ('dist', 'distcheck') for arg in sys.argv[1:]):
if not 'APPNAME' in os.environ:
- print ("You must define APPNAME in the environment when running ./waf dist")
+ print ("You must define APPNAME in the environment when running ./waf dist/distcheck")
sys.exit (1)
APPNAME = os.environ['APPNAME'];