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
17 WEB=http://juniper.github.io/libxo/${VERSION}/xohtml
20 echo "xohtml: wrap libxo-enabled output in HTML"
21 echo "Usage: xohtml [options] [command [arguments]]"
22 echo "Valid options are:"
23 echo " -b <basepath> | --base <basepath>"
24 echo " -c <command> | --command <command>"
25 echo " -f <output-file> | --file <output-file>"
29 while [ -z "$DONE" -a ! -z "$1" ]; do
59 CMD="$XX --libxo=html $@"
64 if [ "$CMD" = "cat" -a -t 0 ]; then
70 echo '<meta http-equiv="content-type" content="text/html; charset=utf-8"/>'
71 echo '<link rel="stylesheet" href="'$BASE'/xohtml.css">'
72 echo '<link rel="stylesheet" href="'$BASE'/external/jquery.qtip.css"/>'
73 echo '<script type="text/javascript" src="'$BASE'/external/jquery.js"></script>'
74 echo '<script type="text/javascript" src="'$BASE'/external/jquery.qtip.js"></script>'
75 echo '<script type="text/javascript" src="'$BASE'/xohtml.js"></script>'