Print error messages to stderr, not to stdout.

Fixed usage message to match reality (-a was missing) and man page
(arg names were spelled differently).
This commit is contained in:
Bruce Evans 1997-02-13 12:05:12 +00:00
parent cc5625f0ed
commit 30c218bf14
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22641

View File

@ -63,7 +63,7 @@ while :
done
case $# in 0)
echo 'usage: mkdep [-p] [-f depend_file] [cc_flags] file ...'
echo 'usage: mkdep [-ap] [-f file] [flags] file ...' >&2
exit 1;;
esac
@ -80,7 +80,7 @@ echo "# $@" > $TMP # store arguments for debugging
if $MKDEP_CPP -M "$@" >> $TMP; then :
else
echo 'mkdep: compile failed.'
echo 'mkdep: compile failed' >&2
exit 1
fi