From beb2f391989350fd107ca0e860dccdb63cb6bf20 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 28 Dec 2014 21:12:06 -0600 Subject: [PATCH] Replaced explicit list of files to be copied in test/common.sh.in with *. It wasn't trivial, per the comments in the file about portability to posh, but close. --- test/common.sh.in | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/test/common.sh.in b/test/common.sh.in index 8f89a2cd..19ce4465 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -294,16 +294,12 @@ EOF if test -z '@nmhetcdirinst@'; then #### This isn't used with make distcheck. - for f in MailAliases components digestcomps distcomps forwcomps \ - mhl.body mhl.digest mhl.format \ - mhl.forward mhl.headers mhl.reply \ - mhn.defaults rcvdistcomps replcomps replgroupcomps \ - scan.MMDDYY scan.YYYYMMDD scan.curses scan.default \ - scan.highlighted scan.mailx scan.nomime scan.size scan.time \ - scan.timely scan.unseen - do - cp "${MH_INST_DIR}${nmhetcdir}/${f}" "${MH_TEST_DIR}/Mail" || exit 1 - done + #### posh doesn't like "${MH_INST_DIR}${nmhetcdir}"/*, so + #### cd to the directory. + (cd "${MH_INST_DIR}${nmhetcdir}/" && + for f in *; do + cp "$f" "${MH_TEST_DIR}/Mail" + done) fi folder -create +inbox > /dev/null -- 2.56.0