diff options
Diffstat (limited to 'hwrap')
-rwxr-xr-x | hwrap | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,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>' |