From: David Levine Date: Mon, 29 Dec 2014 03:12:06 +0000 (-0600) Subject: Replaced explicit list of files to be copied in test/common.sh.in X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/beb2f391989350fd107ca0e860dccdb63cb6bf20?ds=inline;hp=-c 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. --- beb2f391989350fd107ca0e860dccdb63cb6bf20 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