1#!/bin/sh
2OPT=
3if [ $# -gt 0 -a $1 = "-u" ]; then
4  OPT=-u
5  shift
6fi
7if [ $# = 0 ]; then
8  URL=$WWW_HOME
9else
10  URL=$1
11fi
12w3m -dump_source $URL | makeref $OPT -url $URL | w3m -dump -F -T text/html
13