5 # Copyright (c) 2014, Juniper Networks, Inc.
7 # This SOFTWARE is licensed under the LICENSE provided in the
8 # ../Copyright file. By downloading, installing, copying, or otherwise
9 # using the SOFTWARE, you agree to be bound by the terms of that
11 # Phil Shafer, July 2014
18 WEB=http://juniper.github.io/libxo/${VERSION}/xohtml
21 echo "xohtml: wrap libxo-enabled output in HTML"
22 echo "Usage: xohtml [options] [command [arguments]]"
23 echo "Valid options are:"
24 echo " -b <basepath> | --base <basepath>"
25 echo " -c <command> | --command <command>"
26 echo " -f <output-file> | --file <output-file>"
30 while [ -z "$DONE" -a ! -z "$1" ]; do
60 CMD="$XX --libxo=html $@"
65 if [ "$CMD" = "cat" -a -t 0 ]; then
71 echo '<meta http-equiv="content-type" content="text/html; charset=utf-8"/>'
72 echo '<link rel="stylesheet" href="'$BASE'/xohtml.css">'
73 echo '<link rel="stylesheet" href="'$BASE'/external/jquery.qtip.css"/>'
74 echo '<script type="text/javascript" src="'$BASE'/external/jquery.js"></script>'
75 echo '<script type="text/javascript" src="'$BASE'/external/jquery.qtip.js"></script>'
76 echo '<script type="text/javascript" src="'$BASE'/xohtml.js"></script>'