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