--target <target>
Distribution to build packages for (default: debian10)
+--only-build <package>
+ Build only a specific package (or $ONLY_BUILD from environment)
--upload
If the build and test steps are successful, upload the packages
to a remote apt repository (default: false)
fi
PARSEDOPTS=$(getopt --name "$0" --longoptions \
- help,debug,upload,rc,target:,build-version: \
+ help,debug,upload,rc,target:,only-build:,build-version: \
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
--target)
TARGET="$2"; shift
;;
+ --only-build)
+ ONLY_BUILD="$2"; shift
+ ;;
--debug)
DEBUG=" --debug"
;;
build_args+=(--target "$TARGET")
+if [[ -n "$ONLY_BUILD" ]]; then
+ build_args+=(--only-build "$ONLY_BUILD")
+fi
+
exit_cleanly() {
trap - INT
report_outcomes