blob: 8782e2664c8de251540cb51f5a9faa20b5977885 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
set -eu
case "$1" in
(*.[chlmy]|Makefile|*.mk|*.[1-9]|.profile|.shrc|*.sh)
tmp=$(mktemp -d)
trap 'rm -fr "${tmp}"' EXIT
cd "${tmp}"
cat >"$1"
: >tags
case "$1" in
(*.[chlmy]) ctags -w "$1";;
(*) mtags "$1";;
esac
hilex -f html "$1" | htagml -i "$1"
;;
(*)
exec hilex -t -n "$1" -f html
;;
esac
|