summaryrefslogtreecommitdiffstats
path: root/remoting/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/webapp')
-rwxr-xr-xremoting/webapp/build-webapp.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/remoting/webapp/build-webapp.py b/remoting/webapp/build-webapp.py
index 42e941c..df4c56f 100755
--- a/remoting/webapp/build-webapp.py
+++ b/remoting/webapp/build-webapp.py
@@ -306,10 +306,10 @@ def buildWebApp(buildtype, version, mimetype, destination, zip_path, plugin,
def main():
- if len(sys.argv) < 7:
+ if len(sys.argv) < 6:
print ('Usage: build-webapp.py '
- '<build-type> <version> <mime-type> <dst> <zip-path> <plugin> '
- '<other files...> [--patches <patches...>] '
+ '<build-type> <version> <mime-type> <dst> <zip-path> '
+ '<other files...> [--plugin <plugin>] [--patches <patches...>] '
'[--locales <locales...>]')
return 1
@@ -317,18 +317,22 @@ def main():
files = []
locales = []
patches = []
+ plugin = ""
for arg in sys.argv[7:]:
- if arg == '--locales' or arg == '--patches':
+ if arg in ['--locales', '--patches', '--plugin']:
arg_type = arg
elif arg_type == '--locales':
locales.append(arg)
elif arg_type == '--patches':
patches.append(arg)
+ elif arg_type == '--plugin':
+ plugin = arg
+ arg_type = ''
else:
files.append(arg)
return buildWebApp(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4],
- sys.argv[5], sys.argv[6], files, locales, patches)
+ sys.argv[5], plugin, files, locales, patches)
if __name__ == '__main__':