aboutsummaryrefslogtreecommitdiff
path: root/hwrap
blob: 7dcfae019e60e1e6d161ba9e934046f6b1e8b43d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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>'