]> diplodocus.org Git - nmh/commitdiff
Replaced explicit list of files to be copied in test/common.sh.in
authorDavid Levine <levinedl@acm.org>
Mon, 29 Dec 2014 03:12:06 +0000 (21:12 -0600)
committerDavid Levine <levinedl@acm.org>
Mon, 29 Dec 2014 03:12:06 +0000 (21:12 -0600)
with *.  It wasn't trivial, per the comments in the file about
portability to posh, but close.

test/common.sh.in

index 8f89a2cd426df231548d3cd3c740484e738a615d..19ce4465dd6fdf8b3248fc093a831cac03c62fee 100644 (file)
@@ -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