3 # Copyright (c) 2014, Juniper Networks, Inc.
5 # This SOFTWARE is licensed under the LICENSE provided in the
6 # ../Copyright file. By downloading, installing, copying, or otherwise
7 # using the SOFTWARE, you agree to be bound by the terms of that
9 # Phil Shafer, July 2014
17 echo "xohtml: wrap libxo-enabled output in HTML"
18 echo "Usage: xohtml [options] [command [arguments]]"
19 echo "Valid options are:"
20 echo " -b <basepath> | --base <basepath>"
21 echo " -c <command> | --command <command>"
22 echo " -f <output-file> | --file <output-file>"
26 while [ -z "$DONE" -a ! -z "$1" ]; do
51 CMD="$XX --libxo=html $@"
56 if [ "$CMD" = "cat" -a -t 0 ]; then
60 echo "<html>\n<head>\n"
61 echo '<meta http-equiv="content-type" content="text/html; charset=utf-8"/>'
62 echo '<link rel="stylesheet" href="'$BASE'/xohtml.css">'
63 echo '<link rel="stylesheet" href="'$BASE'/external/jquery.qtip.css"/>'
64 echo '<script type="text/javascript" src="'$BASE'/external/jquery.js"></script>'
65 echo '<script type="text/javascript" src="'$BASE'/external/jquery.qtip.js"></script>'
66 echo '<script type="text/javascript" src="'$BASE'/xohtml.js"></script>'
69 echo "</head>\n<body>\n"
73 echo "</body>\n</html>\n"