You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exiv2/website/bin/exiv2-htmlman.sh

14 lines
292 B
Bash

#! /bin/sh
if [ $# -eq 0 ] ; then
echo "Usage: `basename $0` manpage"
cat <<EOF
Convert manpage to html and make external links point to linux.die.net.
EOF
exit 1
fi
cat $1 | sed '/^JPEG/ i\
' | man2html -Hlinux.die.net -M/man -p | sed -e's,\(HREF=.*\)+,\1/,' > exiv2-man.html