It's just a shell fragment, so it can set the necessary variables in any
way that seems sensible.
+###--------------------------------------------------------------------------
+### Configuration.
+
+unset checkout checkoutrev
+unset setup setupcmd
+unset dput dputtarget
+unset build distcheck debian upload clean vpath native
+for i in \
+ "/etc/mdw-build.conf" \
+ "${XDG_CONFIG_HOME-$HOME/.config}/mdw-build.conf" \
+ "./.mdw-build.conf"
+do
+ if [ -f "$i" ]; then . "$i"; fi
+done
+: ${checkout=yes} ${checkoutrev=HEAD}
+: ${build=test}
+: ${setup=yes} ${setupcmd=mdw-setup}
+: ${distcheck=yes}
+: ${debian=yes}
+: ${upload=yes}
+: ${clean=yes}
+: ${vpath=yes}
+: ${native=yes}
+: ${DEB_BUILD_OPTIONS=parallel=4}; export DEB_BUILD_OPTIONS
+
###--------------------------------------------------------------------------
### Parse options.
###--------------------------------------------------------------------------
### Parse options.
shift $((OPTIND - 1))
## Parse the build options.
shift $((OPTIND - 1))
## Parse the build options.
-checkout=yes
-checkoutrev=HEAD
-build=test
-setup=yes
-setupcmd=mdw-setup
-distcheck=yes
-debian=yes
-upload=yes
-clean=yes
-vpath=yes
-native=yes
for opt; do
case "$opt" in
checkout) checkout=yes checkoutrev=HEAD ;;
for opt; do
case "$opt" in
checkout) checkout=yes checkoutrev=HEAD ;;