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