<|start_filename|>src/docs/markdown.css<|end_filename|>
/* Style sheet for Markdown-generated HTML. */

body
{
    background-color: white;
    font-family: Arial, Helvetica, Verdana, sans-serif;
}

pre
{ 
    margin-left: 0.5in;
}

// Table of contents stuff. See toc.js

li.tocH1
{
    margin-left: 2em
}

li.tocH2
{ 
    margin-left: 3em
}

li.tocH3
{ 
    margin-left: 4em
}

li.tocH4
{ 
    margin-left: 5em
}

li.tocH5
{
    margin-left: 6em
}

li.tocH6
{
    margin-left: 7em
}

h2
{
    background-color: #aaaaaa;
    border: 1px solid black;
}

h3
{
    background-color: #dddddd;
    border: 1px solid black;
}

h4
{ 
    font-style: italic;
}

h5
{ 
    font-style: italic;
    text-decoration: underline;
}

h6
{ 
    font-style: italic;
    text-decoration: underline;
}



<|start_filename|>src/docs/users-guide/ug.css<|end_filename|>
/* SQLShell User's Guide CSS */

@import url("http://fonts.googleapis.com/css?family=OFL+Sorts+Mill+Goudy+TT:regular,bold");
@import url("http://fonts.googleapis.com/css?family=Bentham:regular,bold");

body
{
    font-family: Georgia, "Times New Roman", serif;
}

h1, h2, h3, h4, h5, .title
{
    font-family: Bentham, "OFL Sorts Mill Goudy TT", Georgia, Didot, serif;
}


<|start_filename|>src/main/izpack/sqlshell.bat<|end_filename|>
@echo off
if "%OS%" == "Windows_NT" @setlocal
rem ---------------------------------------------------------------------------
rem Front end Windows script for SQLShell
rem
rem $Id$
rem ---------------------------------------------------------------------------
rem This software is released under a BSD-style license:
rem
rem Copyright (c) 2009 <NAME>. All rights reserved.
rem
rem Redistribution and use in source and binary forms, with or without
rem modification, are permitted provided that the following conditions are
rem met:
rem
rem 1.  Redistributions of source code must retain the above copyright notice,
rem     this list of conditions and the following disclaimer.
rem
rem 2.  The end-user documentation included with the redistribution, if any,
rem     must include the following acknowlegement:
rem
rem       "This product includes software developed by <NAME>
rem       (<EMAIL>, http://www.clapper.org/bmc/). That software is
rem       copyright (c) 2009 <NAME>."
rem
rem     Alternately, this acknowlegement may appear in the software itself,
rem     if wherever such third-party acknowlegements normally appear.
rem
rem 3.  Neither the names "clapper.org", "SQLShell", nor any of the names of
rem     the project contributors may be used to endorse or promote products
rem     derived from this software without prior written permission. For
rem     written permission, please contact <EMAIL>.
rem
rem 4.  Products derived from this software may not be called "SQLShell",
rem     nor may "clapper.org" appear in their names without prior written
rem     permission of <NAME>.
rem
rem THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
rem WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
rem MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
rem NO EVENT SHALL <NAME> BE LIABLE FOR ANY DIRECT, INDIRECT,
rem INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
rem NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
rem DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
rem THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
rem (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
rem THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
rem ---------------------------------------------------------------------------

set SQLSHELL_SCALA_OPTS=

rem Make sure Java user.home property accurately reflects home directory
if NOT "%HOME%"=="" set SQLSHELL_SCALA_OPTS=%SQLSHELL_SCALA_OPTS% -Duser.home="%HOME%"

set _TOOL_CLASSPATH=
if "%_TOOL_CLASSPATH%"=="" (
  for %%f in ("C:\Users\bmc\sqlshell\lib\*") do call :add_cpath "%%f"
  if "%OS%"=="Windows_NT" (
    for /d %%f in ("C:\Users\bmc\sqlshell\lib\*") do call :add_cpath "%%f"
  )
)

if NOT "%CLASSPATH%" == "" call :add_cpath "%CLASSPATH%"

rem if "%SCALA_HOME%" == "" (
rem    @echo "SCALA_HOME is not set"
rem    goto end
rem )

java -cp "%_TOOL_CLASSPATH%" %SQLSHELL_SCALA_OPTS% org.clapper.sqlshell.tool.Tool %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end

rem ##########################################################################
rem # subroutines

:add_cpath
  if "%_TOOL_CLASSPATH%"=="" (
    set _TOOL_CLASSPATH=%~1
  ) else (
    set _TOOL_CLASSPATH=%_TOOL_CLASSPATH%;%~1
  )
goto :eof

:end
if "%OS%"=="Windows_NT" @endlocal




<|start_filename|>src/docs/toc.js<|end_filename|>
// pageToc.js
//
// Ensure all headings are added to the page table of contents. Adapted from 
// http://www.bright-green.com/blog/2004_06_02/javascript_table_of_contents.html

function createTOC()
{
    // find the nodes to be added to the Page TOC
    var tocTargets = new Array();
    var nodes = document.getElementById('body').childNodes;
    for (var i = 0; i < nodes.length; i++)
    {
        var nn = nodes[i].nodeName
        if (nn == "H1" || nn == "H2" || nn == "H3" ||
            nn == "H4" || nn == "H5" || nn == "H6")
        {
            tocTargets.push(nodes[i]);
        }
    }

    var tocDiv = document.getElementById('toc');

    // Remove toc if none or one heading
    if (tocTargets.length <= 1)
    {
        tocDiv.parentNode.removeChild(tocDiv);
        return;
    }

    // Add the toc contents
    tocDiv = document.getElementById('toc');
    tocList = document.createElement('ul');
    tocList.className = 'toc';
    tocDiv.appendChild(tocList);
    // Insert elements into our table of contents
    for (var i = 0; i < tocTargets.length; i++)
    {
        tocTarget = tocTargets[i];
        if (tocTarget.id == '')
            tocTarget.id = 'toc' + i;

        var newItem = document.createElement('li');
        newItem.className = 'toc' + tocTarget.nodeName;
        var newLink = document.createElement('a');
        newLink.href = '#' + tocTarget.id;
        newLink.innerHTML = tocTarget.innerHTML;
        newItem.appendChild(newLink);
        tocList.appendChild(newItem);
    }
}
