#!/bin/sh
# hwrap -- wrap in <html> tag
l=
while getopts l: o; do
case $o in
l) l=$OPTARG ;;
?) echo usage: $0 [-l LANG] 1>&2; exit 1 ;;
esac
done
shift $((OPTIND-1))
if test -z "$l"
then echo '<html>'
else echo "<html lang=\"$l\">"
fi
cat
echo '</html>'