diff --git a/drydocker.sh b/drydocker.sh index 5b2fb8b..5e191a9 100644 --- a/drydocker.sh +++ b/drydocker.sh @@ -1,83 +1,88 @@ #!/bin/bash function usage { echo "Usage: $0 [options]" echo "" echo "Options:" echo "" echo "--id " echo "" echo " The ID of the buildable." echo "" echo "--commit " echo "" echo " The commit ID to build and test." echo "" echo "--differential " echo "" echo " The differential ID to build and test." echo "" echo "--phid " echo "" echo " The Phabricator internal ID of the buildable." echo "" echo "--uri " echo "" echo " The URI to the source code management repository," echo " also used to determine response credentials and" echo " feedback locations." echo "" echo " If not specified, assumes git.kolab.org is the" echo " appropriate Phabricator instance." echo "" echo "--vcs " echo "" echo " Version control system, defaults to 'git'" exit 1 } vcs="git" while [ $# -gt 0 ]; do case $1 in + --id) + id=$2 + shift; shift + ;; + # buildable.commit --commit) commit=$2 shift; shift ;; # buildable.revision --differential) differential=$2 shift; shift ;; # target.phid --phid) phid=$2 shift; shift ;; --uri) uri=$2 shift; shift ;; --vcs) vcs=$2 shift; shift ;; *) usage ;; esac done if [ -z "${commit}" -a -z "${differential}" ]; then echo "At least one of commit or differential is required." exit 1 fi echo "At this stage, we're just going to be successful." exit 0