#
# Create a single file named "all" as a numerically ordered concatenation of
# all the numbered mail message files in the current mh folder directory.  Then
# ./mh-folder-to-apple-mbox.el to do the rest of the work described therein.
#
# $1 is the number of the last file, i.e., the file with the largest number as
# its name.
#
rm -f all
set i = 1
while ( $i < = $1 )
    cat $i >> all
    @ i = $i + 1
end

emacs -batch -l ~/emacs/lib/mh-folder-to-apple-mbox.el -e mh-folder-to-apple-mbox
