From 0eed74928168dcdaaa5bced1522acbb6072d13b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 1 Dec 2020 01:39:12 +0100 Subject: hwrap: Add -d (dir), -t (doctype) options --- hwrap | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'hwrap') diff --git a/hwrap b/hwrap index 7dcfae0..c8e4037 100755 --- a/hwrap +++ b/hwrap @@ -2,19 +2,43 @@ # hwrap -- wrap in tag +d= l= -while getopts l: o; do +t=5 +while getopts d:l:t: o; do case $o in + d) d=$OPTARG ;; l) l=$OPTARG ;; - ?) echo usage: $0 [-l LANG] 1>&2; exit 1 ;; + t) t=$OPTARG ;; + ?) echo usage: $0 [-d DIR] [-l LANG] [-t DOCTYPE] 1>&2; exit 1 ;; esac done shift $((OPTIND-1)) -if test -z "$l" -then echo '' -else echo "" -fi +case "$t" in +5) echo '' ;; +4) echo '' ;; +4t) echo '' ;; +4f) echo '' ;; +x1) echo '' ;; +x1t) echo '' ;; +x1f) echo '' ;; +x11) echo '' ;; +xb11) echo '' ;; +esac + +printf '' cat -- cgit v1.2.3