Skip to content

Commit

Permalink
webview build [nfc]: document argument variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rk-for-zulip committed Feb 11, 2020
1 parent 5334851 commit 72d333f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tools/build-webview
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,23 @@ readonly aux_script_dir="$root"/tools/build-webview.d
# Parameters
################################################################################

# Parse arguments. Sloppy, but sufficient for now.
# The target platform. Will be one of `ios` or `android`.
unset target

# The destination directory. Our caller expects this to contain exactly and only
# the files which will be copied into the app's local `webview` directory.
unset dest

# The temporary staging directory. Files will be copied here by our auxiliary
# scripts before being moved to $dest.
staging="$root/staging/"

# Whether to perform sanity checks on the other arguments. Enabled by default,
# in case one of the build systems changes its behavior without our noticing,
# but can be disabled for manual testing.
sanity_checks=1

# Parse arguments. Sloppy, but sufficient for now.
while (( $# )); do
case "$1" in
--help|-h|help)
Expand Down

0 comments on commit 72d333f

Please sign in to comment.