if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
-mlist=
-for
-do
- case "$arg" in
+mfiles=
+while test $# -gt 0; do
+ case "$1" in
--help | --h* )
echo "${usage}" 1>&2
exit 0
echo "Automake version $VERSION"
exit 0
;;
+
+ -- ) # Stop option processing.
+ shift
+ break
+ ;;
+
+ -*)
+ # FIXME consider "-" meaning stdin as input?
+ echo "automake: unrecognized option -- \`$1'" 1>&2
+ echo "${usage}" 1>&2
+ exit 1
+ ;;
+
+ * )
+ mfiles="$mfiles $arg"
+ ;;
esac
+ shift
done
# FIXME in this case, should look for Makefile.am, */Makefile.am and
# use those.
-if test $# -eq 0; then
+if test ${#mfiles} -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
+set $mfiles
am_status=0