#!/bin/sh
exit 0
# not yet in use

# ~jhs/bin/linkcheck_after_vi
# See Also: tidy_after_vi
# Called by ~jhs/src/bsd/fixes/FreeBSD/src/gen/share/mk/berklix.mk
# Calls /usr/local/bin/linkcheck
# JJLATER DUMMY FOR NOW, ADD FLAGS LATER

yes()
	{
	# echo Calling linkcheck $*
		# Note this $* is not params passed to this file script,
		# but params passed to this procedure by caller.
	# linkcheck # FLAGS
		# If errors, it might exits non zero,
		# and get passed back to berklix.mk,
		# which would error out before it could call
		#	rm -f ${.TARGET}
		# to remove the .vhtml temporary file
	exit 0
	}
no()
	{
	echo "Skipping linkcheck $*"
	}

# ---- End of procedures, start of main --------

echo "WARNING if $* ends in .m4 do NOT ANSWER YES!"

echo -n "linkcheck $* ? "
read edit
# echo EDIT is $edit
case ${edit} in
[Nn][Oo])
	no $*
	;;
[Nn])
	no $*
	;;
[Yy][Ee][Ss])
	yes $*
	;;
[Yy])
	yes $*
	;;
*)
	echo Error, Bad Answer, should be Yes or No, Assuming No.
	no
	;;
esac
# The above decides if we will run linkcheck with perhaps more warning flags
# Regardless if we will, or not, now show any major errors remaining
# JJLATER linkcheck $* > /dev/null
