done
assign srcpath $(pwd)
+## Build any necessary qualifiers.
+qual= sep=.
+case ${SBOX_SESSION_DIR+t},${DEB_BUILD_ARCH+t} in
+ t,t) qual=$qual$sep$DEB_BUILD_ARCH; sep=- ;;
+ t,*) fail "unknown build arch" ;;
+esac
+
## Construct the output directory.
-assign releasepath $srcpath/dist-$build
+assign releasepath $srcpath/dist-$build$qual
chmod -R +w $releasepath 2>/dev/null || :
rm -rf $releasepath 2>/dev/null || :
mkdir $releasepath
cd $srcpath
[ "$(git ls-files -m)" = "" ] ||
warn "working tree has uncommitted changes"
- gitver=$(git describe --abbrev=4)
+ ;;
esac
## Is there Debian build equipment?
;;
esac
+## Maybe check out a copy of the source.
+case "$checkout" in
+ yes)
+ cd $releasepath
+ run git clone -sn $srcpath/.git _source
+ assign srcpath $releasepath/_source
+ cd $srcpath
+ run git checkout -b mdw-build $checkoutrev
+ gitver=$(git describe --abbrev=4)
+ ;;
+esac
+
## Check the version number.
hack_dch_p=no
case "$gitver,$debver" in
;;
esac
-## Maybe check out a copy of the source.
-case "$checkout" in
- yes)
- cd $releasepath
- run git clone -sn $srcpath/.git _source
- assign srcpath $releasepath/_source
- cd $srcpath
- run git checkout -b mdw-build $checkoutrev
- ;;
-esac
-
## Maybe refresh the build machinery.
case "$setup" in
yes)
;; We may have the misfortune to talk to an Exchange server.
(setq imap-enable-exchange-bug-workaround t)
+;; Save articles in mbox format by default, of course, and save an entire
+;; batch with the same name.
+(setq gnus-prompt-before-saving t
+ gnus-default-article-saver 'gnus-summary-save-in-mail)
+
;; Clean up properly when closing the summary.
(defadvice gnus-summary-exit (before mdw-kill-debris compile activate)
(gnus-summary-expand-window))