[
  {
    "path": ".bashrc",
    "content": "export HOME=$(echo \"/$USERPROFILE\" | sed -e 's/\\\\/\\//g' -e 's/://')\nif [ -e ~/.bashrc ]\nthen\n  source ~/.bashrc\nfi\n"
  },
  {
    "path": ".gitignore",
    "content": "# Gow gitignore file\n\nGow*.exe\n"
  },
  {
    "path": "ReadMe.md",
    "content": "------------------------------------------------------------\nGow - The lightweight alternative to Cygwin\n------------------------------------------------------------\n\n**[Download](https://github.com/bmatzelle/gow/releases)** |\n[Home Page](http://wiki.github.com/bmatzelle/gow/) |\n[FAQ](http://wiki.github.com/bmatzelle/gow/faq)\n\nAuthor:   Brent R. Matzelle\n\nABOUT\n-----\n\nGow (Gnu On Windows) is the lightweight alternative to Cygwin. It uses a \nconvenient Windows installer that installs about 130 extremely useful \nopen source UNIX applications compiled as native win32 binaries. It is \ndesigned to be as small as possible, about 10 MB, as opposed to Cygwin \nwhich can run well over 100 MB depending upon options.\n\nHere are a couple quotes from happy Gow users:\n\n> \"Gow is one of the few things that makes Windows bearable/usable\"\n\n> \"I use Gow constantly. It's awesome.\"\n\n> \"I just wanted to let you know that the GOW Suite is simply great - it is \nfar lighter than the Cygwin tool, and is extremely useful. \"\n\nFEATURES & BENEFITS\n-------------------\n\n- Ultra light: Small, light subset (about 10 MB) of very useful UNIX \n  binaries that do not have decent installers.\n- Shell window from any directory: Adds a Windows Explorer shell window \n  so that you can right-click on any directory and open a command \n  (cmd.exe) window from that directory.\n- Simple install/remove: Easy to install and remove, all files contained \n  in a single directory in a standard C:\\Program Files path.\n- Included in PATH: All binaries are conveniently installed into the \n  Windows PATH so they are accessible from a command-line window.\n- Stable binaries: All commands are kept up to date but also as stable as \n  possible.\n\n\nOTHER LINKS\n---------------------\n\n- [Release Notes](http://wiki.github.com/bmatzelle/gow/change_log)\n- [Contributing](https://github.com/bmatzelle/gow/wiki/contributing)\n- [Executables list](http://wiki.github.com/bmatzelle/gow/executables_list)\n- [Unix command reference](http://www.pixelbeat.org/cmdline.html)\n\nFEEDBACK\n--------\n\nPlease submit feedback via the \n[Gow issue tracker](http://github.com/bmatzelle/gow/issues)\n\nThank you for trying Gow!\n\nCopyright (c) 2006 - 2014 Brent R. Matzelle\n"
  },
  {
    "path": "bin/clear.bat",
    "content": "@echo off\ncls\n"
  },
  {
    "path": "bin/gow.vbs",
    "content": "'------------------------------------------------\n' Gow - The lightweight alternative to Cygwin\n' Handles all tasks for the Gow project.  \n' Author: Brent R. Matzelle\n'------------------------------------------------\nOption Explicit\n\n' Adds a path to the environment variable.  \nSub ExecutablesList()\n  Dim fileSys, folder, file, index, shell, line\n  \n  line = \"  \"\n  Set fileSys = CreateObject(\"Scripting.FileSystemObject\")\n\n  Set folder = filesys.GetFolder(ScriptPath())\n\n  Print \"Available executables:\"\n  Print \"\"\n\n  For Each file In folder.Files\n    If IsExecutable(file) Then\n      If (Len(line) + Len(file.Name)) >= 78 Then\n        WScript.Echo line\n        line = \"  \"\n      End If\n      line = line & Left(file.Name, Len(file.Name) - 4) & \", \"\n    End If\n  Next\n  \n  WScript.Echo Left(line, Len(line) - 2)\nEnd Sub\n\n' Returns true if the file is an executable. \nFunction IsExecutable(file)\n  Dim result\n  result = false\n\n  If Len(file) > 4 Then\n    result = (Right(file, 4) = \".exe\")\n    \n    If result = False Then\n      result = (Right(file, 4) = \".bat\")\n    End If\n  End If\n  \n  IsExecutable = result\nEnd Function\n\n' Main sub-routine\nSub Main()\n  If Wscript.Arguments.Count < 1 Then\n    PrintUsage\n    Exit Sub\n  End If\n\n  Select Case Wscript.Arguments(0)\n  Case \"-l\", \"--list\"\n    Call ExecutablesList()\n  Case \"-V\", \"--version\"\n    Print(\"Gow \" & Version())\n  Case \"-h\", \"--help\"\n    Call PrintUsage\n  Case Else\n    Print \"UNKNOWN COMMAND: [\" & WScript.Arguments(0) & \"]\"\n    Print \"\"\n    PrintUsage\n  End Select\nEnd Sub\n\n' Prints out a message.  \nSub Print(message)\n  Wscript.Echo message\nEnd Sub\n\n' Prints out the normal program usage parameters\nSub PrintUsage()\n  Print \"Gow \" & Version() & \" - The lightweight alternative to Cygwin\"\n  Print \"Usage: gow OPTION\"\n  Print \"\"\n  Print \"Options:\"\n  Print \"    -l, --list                       Lists all executables\"\n  Print \"    -V, --version                    Prints the version\"\n  Print \"    -h, --help                       Show this message\"\nEnd Sub\n\n' Returns the path of the VBS script. \nFunction ScriptPath\n  ScriptPath = Replace(WScript.ScriptFullName, \"\\\" & WScript.ScriptName, \"\")\nEnd Function\n\n' Prints out the version of Gow.  \nFunction Version()\n  Version = \"0.8.0\"\nEnd Function\n\n\n'------------------------------------------------\n' Start program here\nCall Main()\n\n"
  },
  {
    "path": "bin/scp.bat",
    "content": "@echo off\npscp %1 %2 %3 %4 %5 %6 %7 %8 %9\n"
  },
  {
    "path": "bin/sftp.bat",
    "content": "@echo off\npsftp %1 %2 %3 %4 %5 %6 %7 %8 %9\n"
  },
  {
    "path": "bin/ssh.bat",
    "content": "@echo off\nplink %1 %2 %3 %4 %5 %6 %7 %8 %9"
  },
  {
    "path": "bin/whereis.bat",
    "content": ":: Whereis program by Raymond Chen\n:: URL: http://blogs.msdn.com/oldnewthing/archive/2005/01/20/357225.aspx\n\n@for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT \"%%~$PATH:i\"==\"\" echo %%~$PATH:i\n"
  },
  {
    "path": "docs/NoDocs.txt",
    "content": ""
  },
  {
    "path": "licenses/GPL-License.txt",
    "content": "\t\t    GNU GENERAL PUBLIC LICENSE\n\t\t       Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\t\t\t    Preamble\n\n  The licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users.  This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it.  (Some other Free Software Foundation software is covered by\nthe GNU Library General Public License instead.)  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n  To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have.  You must make sure that they, too, receive or can get the\nsource code.  And you must show them these terms so they know their\nrights.\n\n  We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n  Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware.  If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n  Finally, any free program is threatened constantly by software\npatents.  We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary.  To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\f\n\t\t    GNU GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License.  The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage.  (Hereinafter, translation is included without limitation in\nthe term \"modification\".)  Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n  1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n  2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) You must cause the modified files to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    b) You must cause any work that you distribute or publish, that in\n    whole or in part contains or is derived from the Program or any\n    part thereof, to be licensed as a whole at no charge to all third\n    parties under the terms of this License.\n\n    c) If the modified program normally reads commands interactively\n    when run, you must cause it, when started running for such\n    interactive use in the most ordinary way, to print or display an\n    announcement including an appropriate copyright notice and a\n    notice that there is no warranty (or else, saying that you provide\n    a warranty) and that users may redistribute the program under\n    these conditions, and telling the user how to view a copy of this\n    License.  (Exception: if the Program itself is interactive but\n    does not normally print such an announcement, your work based on\n    the Program is not required to print an announcement.)\n\f\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n    a) Accompany it with the complete corresponding machine-readable\n    source code, which must be distributed under the terms of Sections\n    1 and 2 above on a medium customarily used for software interchange; or,\n\n    b) Accompany it with a written offer, valid for at least three\n    years, to give any third party, for a charge no more than your\n    cost of physically performing source distribution, a complete\n    machine-readable copy of the corresponding source code, to be\n    distributed under the terms of Sections 1 and 2 above on a medium\n    customarily used for software interchange; or,\n\n    c) Accompany it with the information you received as to the offer\n    to distribute corresponding source code.  (This alternative is\n    allowed only for noncommercial distribution and only if you\n    received the program in object code or executable form with such\n    an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it.  For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable.  However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\f\n  4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License.  Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n  5. You are not required to accept this License, since you have not\nsigned it.  However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works.  These actions are\nprohibited by law if you do not accept this License.  Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n  6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions.  You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n  7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all.  For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices.  Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\f\n  8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded.  In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n  9. The Free Software Foundation may publish revised and/or new versions\nof the General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\nEach version is given a distinguishing version number.  If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation.  If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n  10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission.  For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this.  Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n\t\t\t    NO WARRANTY\n\n  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\n\n\t\t     END OF TERMS AND CONDITIONS\n\f\n\t    How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nconvey the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) 19yy  <name of author>\n\n    This program is free software; you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation; either version 2 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program; if not, write to the Free Software\n    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\n\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program is interactive, make it output a short notice like this\nwhen it starts in an interactive mode:\n\n    Gnomovision version 69, Copyright (C) 19yy name of author\n    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, the commands you use may\nbe called something other than `show w' and `show c'; they could even be\nmouse-clicks or menu items--whatever suits your program.\n\nYou should also get your employer (if you work as a programmer) or your\nschool, if any, to sign a \"copyright disclaimer\" for the program, if\nnecessary.  Here is a sample; alter the names:\n\n  Yoyodyne, Inc., hereby disclaims all copyright interest in the program\n  `Gnomovision' (which makes passes at compilers) written by James Hacker.\n\n  <signature of Ty Coon>, 1 April 1989\n  Ty Coon, President of Vice\n\nThis General Public License does not permit incorporating your program into\nproprietary programs.  If your program is a subroutine library, you may\nconsider it more useful to permit linking proprietary applications with the\nlibrary.  If this is what you want to do, use the GNU Library General\nPublic License instead of this License.\n\n\n"
  },
  {
    "path": "licenses/Gow-License.txt",
    "content": "\nCopyright (c) 2006-2010 Brent Matzelle (bmatzelle AT gmail DOT com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "licenses/NcFTP-License.txt",
    "content": "\t\t     The Clarified Artistic License\n\n\t\t\t\tPreamble\n\nThe intent of this document is to state the conditions under which a\nPackage may be copied, such that the Copyright Holder maintains some\nsemblance of artistic control over the development of the package,\nwhile giving the users of the package the right to use and distribute\nthe Package in a more-or-less customary fashion, plus the right to make\nreasonable modifications.\n\nDefinitions:\n\n\t\"Package\" refers to the collection of files distributed by the\n\tCopyright Holder, and derivatives of that collection of files\n\tcreated through textual modification.\n\n\t\"Standard Version\" refers to such a Package if it has not been\n\tmodified, or has been modified in accordance with the wishes\n\tof the Copyright Holder as specified below.\n\n\t\"Copyright Holder\" is whoever is named in the copyright or\n\tcopyrights for the package.\n\n\t\"You\" is you, if you're thinking about copying or distributing\n\tthis Package.\n\n\t\"Distribution fee\" is a fee you charge for providing a copy\n        of this Package to another party.\n\n\t\"Freely Available\" means that no fee is charged for the right to\n        use the item, though there may be fees involved in handling the\n        item.  It also means that recipients of the item may redistribute\n        it under the same conditions they received it.\n\n1. You may make and give away verbatim copies of the source form of the\nStandard Version of this Package without restriction, provided that you\nduplicate all of the original copyright notices and associated disclaimers.\n\n2. You may apply bug fixes, portability fixes and other modifications\nderived from the Public Domain, or those made Freely Available, or from\nthe Copyright Holder.  A Package modified in such a way shall still be\nconsidered the Standard Version.\n\n3. You may otherwise modify your copy of this Package in any way, provided\nthat you insert a prominent notice in each changed file stating how and\nwhen you changed that file, and provided that you do at least ONE of the\nfollowing:\n\n    a) place your modifications in the Public Domain or otherwise make them\n    Freely Available, such as by posting said modifications to Usenet or an\n    equivalent medium, or placing the modifications on a major network\n    archive site allowing unrestricted access to them, or by allowing the\n    Copyright Holder to include your modifications in the Standard Version\n    of the Package.\n\n    b) use the modified Package only within your corporation or organization.\n\n    c) rename any non-standard executables so the names do not conflict\n    with standard executables, which must also be provided, and provide\n    a separate manual page for each non-standard executable that clearly\n    documents how it differs from the Standard Version.\n\n    d) make other distribution arrangements with the Copyright Holder.\n\n    e) permit and encourge anyone who receives a copy of the modified Package\n       permission to make your modifications Freely Available\n       in some specific way.\n\n\n4. You may distribute the programs of this Package in object code or\nexecutable form, provided that you do at least ONE of the following:\n\n    a) distribute a Standard Version of the executables and library files,\n    together with instructions (in the manual page or equivalent) on where\n    to get the Standard Version.\n\n    b) accompany the distribution with the machine-readable source of\n    the Package with your modifications.\n\n    c) give non-standard executables non-standard names, and clearly\n    document the differences in manual pages (or equivalent), together\n    with instructions on where to get the Standard Version.\n\n    d) make other distribution arrangements with the Copyright Holder.\n\n    e) offer the machine-readable source of the Package, with your\n       modifications, by mail order.\n\n5. You may charge a distribution fee for any distribution of this Package.\nIf you offer support for this Package, you may charge any fee you choose\nfor that support.  You may not charge a license fee for the right to use\nthis Package itself.  You may distribute this Package in aggregate with\nother (possibly commercial and possibly nonfree) programs as part of a\nlarger (possibly commercial and possibly nonfree) software distribution,\nand charge license fees for other parts of that software distribution,\nprovided that you do not advertise this Package as a product of your own.\nIf the Package includes an interpreter, You may embed this Package's\ninterpreter within an executable of yours (by linking); this shall be\nconstrued as a mere form of aggregation, provided that the complete\nStandard Version of the interpreter is so embedded.\n\n6. The scripts and library files supplied as input to or produced as\noutput from the programs of this Package do not automatically fall\nunder the copyright of this Package, but belong to whoever generated\nthem, and may be sold commercially, and may be aggregated with this\nPackage.  If such scripts or library files are aggregated with this\nPackage via the so-called \"undump\" or \"unexec\" methods of producing a\nbinary executable image, then distribution of such an image shall\nneither be construed as a distribution of this Package nor shall it\nfall under the restrictions of Paragraphs 3 and 4, provided that you do\nnot represent such an executable image as a Standard Version of this\nPackage.\n\n7. C subroutines (or comparably compiled subroutines in other\nlanguages) supplied by you and linked into this Package in order to\nemulate subroutines and variables of the language defined by this\nPackage shall not be considered part of this Package, but are the\nequivalent of input as in Paragraph 6, provided these subroutines do\nnot change the language in any way that would cause it to fail the\nregression tests for the language.\n\n8. Aggregation of the Standard Version of the Package with a commercial\ndistribution is always permitted provided that the use of this Package\nis embedded; that is, when no overt attempt is made to make this Package's\ninterfaces visible to the end user of the commercial distribution.\nSuch use shall not be construed as a distribution of this Package.\n\n9. The name of the Copyright Holder may not be used to endorse or promote\nproducts derived from this software without specific prior written permission.\n\n10. THIS PACKAGE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR\nIMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED\nWARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.\n\n\t\t\t\tThe End\n"
  },
  {
    "path": "licenses/Putty-License.txt",
    "content": "    PuTTY is copyright 1997-2006 Simon Tatham.\n\n    Portions copyright Robert de Bath, Joris van Rantwijk, Delian Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry, Justin Bradford, Ben Harris, Malcolm Smith, Ahmad Khalifa, Markus Kuhn, and CORE SDI S.A.\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \n"
  },
  {
    "path": "setup/Gow.nsi",
    "content": ";---------------------------------------------\n; Gow (Gnu On Windows) installer\n; Web Site: http://wiki.github.com/bmatzelle/gow/\n; Author: Brent R. Matzelle\n; Copyright (c) 2006 - 2014 Brent R. Matzelle\n;---------------------------------------------\n\n\n;--------------------------------\n; Constants\n\n  !define PRODUCT \"Gow\"\n  !define VERSION \"0.8.0-1\"\n  !define SRC_DIR \"..\"\n\n  Name \"${PRODUCT}\"\n  SetCompressor lzma\n  BrandingText \"${PRODUCT} ${VERSION} Installer - powered by NSIS\"\n  RequestExecutionLevel admin\n\n  !include \"MUI.nsh\" ; Include Modern UI\n\n;--------------------------------\n; Variables\n\n  Var MUI_TEMP\n  Var STARTMENU_FOLDER\n\n;--------------------------------\n; Pages\n\n  !insertmacro MUI_PAGE_LICENSE \"${SRC_DIR}\\licenses\\GPL-License.txt\"\n  !insertmacro MUI_PAGE_COMPONENTS\n  !insertmacro MUI_PAGE_DIRECTORY\n\n  ; Start Menu Folder Page Configuration\n  !define MUI_STARTMENUPAGE_REGISTRY_ROOT \"HKCU\"\n  !define MUI_STARTMENUPAGE_REGISTRY_KEY \"Software\\Modern UI Test\"\n  !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME \"Start Menu Folder\"\n  !insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER\n\n  !insertmacro MUI_PAGE_INSTFILES\n  !insertmacro MUI_UNPAGE_CONFIRM\n  !insertmacro MUI_UNPAGE_INSTFILES\n\n;--------------------------------\n; Language\n\n  !insertmacro MUI_LANGUAGE \"English\"\n\n  OutFile \"${PRODUCT}-${VERSION}.exe\" ; Installer file name\n  ShowInstDetails hide\n  ShowUninstDetails hide\n\n;--------------------------------\n; Descriptions\n\n  LangString DESC_Core ${LANG_ENGLISH} \"Installs the core components\"\n  LangString DESC_CommandPrompt ${LANG_ENGLISH} \"Installs Command Prompt Here\"\n\n  InstallDir \"$PROGRAMFILES\\${PRODUCT}\"\n  InstType \"Default installation\"\n  InstType \"Minimal installation\"\n\n;--------------------------------\n; Installer Sections\n\n; Core components\nSection \"Core Components\" SecCore\n  SectionIn 1 2 RO\n  AddSize 10240\n\n  Call Install\nSectionEnd\n\n; Command Prompt here\nSection \"Command Prompt Here\" DESC_CommandPrompt\n  SectionIn 1\n  AddSize 0\n\n  Call RegistryCommandPrompt\nSectionEnd\n\n;--------------------------------\n; Install Functions\n\n; Configures the installation\nFunction Configure\n  DetailPrint \"Configuring the installation...\"\n\n  StrCpy $R0 \"cscript //NoLogo\"\n  nsExec::Exec '$R0 \"$INSTDIR\\setup\\PathSetup.vbs\" --path-add \"$INSTDIR\\bin\"'\n\n  SetOutPath $INSTDIR\n\n  ClearErrors\n  FileOpen $R1 \"$INSTDIR\\bin\\gow.bat\" w\n  IfErrors done\n  FileWrite $R1 \"@echo off $\\r$\\n\"\n  FileWrite $R1 '$R0 \"$INSTDIR\\bin\\gow.vbs\" %1'\n  FileClose $R1\n\n  done:\nFunctionEnd\n\n; Installs all files\nFunction Files\n  DetailPrint \"Installing all files...\"\n\n  ; Copy Readme files\n  SetOutPath \"$INSTDIR\"\n  File \"${SRC_DIR}\\ReadMe.md\"\n\n  ; Copy license files\n  SetOutPath \"$INSTDIR\\licenses\"\n  File \"${SRC_DIR}\\licenses\\*.txt\"\n\n  ; Executables\n  SetOutPath \"$INSTDIR\\bin\"\n  File \"${SRC_DIR}\\bin\\*.exe\"\n  File \"${SRC_DIR}\\bin\\*.dll\"\n  File \"${SRC_DIR}\\bin\\*.bat\"\n  File \"${SRC_DIR}\\bin\\*.vbs\"\n\n  ; Documentation directory\n  SetOutPath \"$INSTDIR\"\n  File /r \"${SRC_DIR}\\docs\"\n\n  ; Setup files\n  SetOutPath \"$INSTDIR\\setup\"\n  File /r \"${SRC_DIR}\\setup\\*.vbs\"\n\n  ; Bash requires the etc directory to be present.\n  CreateDirectory \"$INSTDIR\\etc\"\n\n  ; Default Bash configuration to set user's home directory, and load user-specific settings.\n  SetOutPath \"$INSTDIR\"\n  File \"${SRC_DIR}\\.bashrc\"\nFunctionEnd\n\n; Starts the installation\nFunction Install\n  Call Files\n  Call Registry\n  Call Configure\n  Call Shortcuts\nFunctionEnd\n\n; Create the necessary registry entries\nFunction Registry\n  DetailPrint \"Installing registry keys...\"\n\n  ; Write Registry settings for Add/Remove\n  WriteRegStr HKLM \"SOFTWARE\\${PRODUCT}\" \"\" \"$INSTDIR\"\n  WriteRegStr HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT}\" \\\n                   \"DisplayName\" \"${PRODUCT}\"\n  WriteRegStr HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT}\" \\\n                   \"DisplayVersion\" \"${VERSION}\"\t\t\t\t   \n  WriteRegStr HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT}\" \\\n                   \"UninstallString\" '\"$INSTDIR\\Uninstall.exe\"'\nFunctionEnd\n\n; Add the Command Prompt Here entry\nFunction RegistryCommandPrompt\n  DetailPrint \"Installing Command Prompt registry keys\"\n\n  StrCpy $R0 'Folder\\shell\\Command Prompt Here ${PRODUCT}'\n  WriteRegStr HKCR $R0 \"\" \"Command Prompt &Here\"\n  WriteRegExpandStr HKCR \"$R0\\command\" \"\" '\"%SystemRoot%\\system32\\cmd.exe\" /k cd /d \"%1\"'\nFunctionEnd\n\n; Removes any old installations of Gow on the system.  \nFunction RemoveOldInstallation\n  DetailPrint \"Checking for old Gow installation...\"\n\n  ReadRegStr $R0 HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT}\" \\\n                      \"UninstallString\"\n  StrCmp $R0 \"\" EndFunction 0\n\n  MessageBox MB_OKCANCEL \\\n             \"${PRODUCT} is already installed. $\\n$\\nClick OK to remove the \\\n             previous version or Cancel to cancel this upgrade.\" \\\n             /SD IDOK IDOK uninstall\n             Abort\n\nuninstall:\n  ; Do not copy the uninstaller to a temp file\n  ExecWait '$R0 /S _?=$INSTDIR'\n\n  IfErrors 0 EndFunction\n  ; TODO: Perform error checking here\n\n  EndFunction:\nFunctionEnd\n\n; Set the shortcuts\nFunction Shortcuts\n  DetailPrint \"Installing Windows shortcuts...\"\n\n  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application\n\n  ; License shortcuts\n  SetOutPath \"$SMPROGRAMS\\$STARTMENU_FOLDER\\Licenses\"\n  CreateShortCut \"$SMPROGRAMS\\$STARTMENU_FOLDER\\Licenses\\Gow.lnk\" \\\n                 \"$INSTDIR\\licenses\\Gow-License.txt\"\n  CreateShortCut \"$SMPROGRAMS\\$STARTMENU_FOLDER\\Licenses\\GPL.lnk\" \\\n                 \"$INSTDIR\\licenses\\GPL-License.txt\"\n  CreateShortCut \"$SMPROGRAMS\\$STARTMENU_FOLDER\\Licenses\\NcFTP.lnk\" \\\n                 \"$INSTDIR\\licenses\\NcFTP-License.txt\"\n  CreateShortCut \"$SMPROGRAMS\\$STARTMENU_FOLDER\\Licenses\\Putty.lnk\" \\\n                 \"$INSTDIR\\licenses\\Putty-License.txt\"\n\n  ; General shortcuts\n  SetOutPath \"$SMPROGRAMS\\$STARTMENU_FOLDER\"\n  CreateShortCut \"$SMPROGRAMS\\$STARTMENU_FOLDER\\ReadMe.lnk\" \\\n                 \"$INSTDIR\\ReadMe.txt\"\n  CreateShortCut \"$SMPROGRAMS\\$STARTMENU_FOLDER\\Uninstall ${PRODUCT} ${VERSION}.lnk\" \\\n                 \"$INSTDIR\\Uninstall.exe\"\n\n  !insertmacro MUI_STARTMENU_WRITE_END\n\nFunctionEnd\n\n;--------------------------------\n; Post installation methods\n\nFunction .onInit\n  Call RemoveOldInstallation\nFunctionEnd\n\nFunction .onInstSuccess\n  Delete \"$INSTDIR\\Uninstall.exe\" ; Delete old uninstaller first\n  WriteUninstaller \"$INSTDIR\\Uninstall.exe\"\nFunctionEnd\n\n;--------------------------------\n; Descriptions\n\n!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN\n  !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} $(DESC_Core)\n  !insertmacro MUI_DESCRIPTION_TEXT ${DESC_CommandPrompt} $(DESC_CommandPrompt)\n!insertmacro MUI_FUNCTION_DESCRIPTION_END\n\n;--------------------------------\n; Uninstaller Section\n\nSection \"Uninstall\"\n  Call un.Configure\n  Call un.Files\n  Call un.Registry\n\n  ; If not reboot then jump to end\n  IfRebootFlag 0 EndNow\n  MessageBox MB_YESNO|MB_ICONQUESTION \\\n              \"Some components could not be fully uninstalled.  You will \\\n              need to $\\nreboot your computer in order to remove them fully. \\\n              Reboot now?\" IDNO EndNow\n  Reboot\n\n  EndNow:\nSectionEnd\n\n; Remove all configuration\nFunction un.Configure\n  StrCpy $R0 'cscript //NoLogo \"$INSTDIR\\setup\\PathSetup.vbs\"'\n  nsExec::Exec '$R0 --path-remove \"$INSTDIR\\bin\"'\nFunctionEnd\n\n; Remove all files\nFunction un.Files\n  RMDir /r \"$INSTDIR\"\n\n  !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP\n\n  Delete \"$SMPROGRAMS\\$MUI_TEMP\\Uninstall.lnk\"\n\n  RMDir /r \"$SMPROGRAMS\\$MUI_TEMP\"\nFunctionEnd\n\n; Remove the registry settings\nFunction un.Registry\n  Call un.RegistryCommandPrompt\n\n  ; Delete registry settings\n  DeleteRegKey HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT}\"\n  DeleteRegKey HKLM \"SOFTWARE\\${PRODUCT}\"\n  DeleteRegKey HKLM \"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\${PRODUCT}\"\nFunctionEnd\n\n; Remove Command Prompt Here\nFunction un.RegistryCommandPrompt\n  DeleteRegKey HKCR \"Folder\\shell\\Command Prompt Here ${PRODUCT}\"\nFunctionEnd\n"
  },
  {
    "path": "setup/PathSetup.vbs",
    "content": "'------------------------------------------------\n' PathSetup\n' Configures the path environment variable. \n' Author: Brent R. Matzelle\n'------------------------------------------------\nOption Explicit\n\n'------------------------------------------------\n' Main sub-routine\nSub Main()\n  If Wscript.Arguments.Count < 1 Then\n    Call PrintUsage(\"Incorrect parameters\")\n    Exit Sub\n  End If\n\n  Select Case Wscript.Arguments(0)\n    Case \"--path-add\", \"-a\" \n      Call PathAdd(Wscript.Arguments(1))\n    Case \"--path-remove\", \"-r\" \n      Call PathRemove(Wscript.Arguments(1))\n    Case \"--help\", \"-h\"\n      Call PrintUsage(\"\")\n    Case Else\n      Call PrintUsage(\"That command is unknown\")\n  End Select\nEnd Sub\n\n'------------------------------------------------\n' Adds a path to the environment variable.  \nSub PathAdd(path)\n  If PathIsPresent(path) Then\n    Exit Sub\n  End If\n\n  ' Get the value of the PATH environment variable\n  Dim script, shell, newPath, oldPath\n  Set script = Wscript.CreateObject(\"Wscript.Shell\")\n  Set shell = script.Environment(\"SYSTEM\")\n  \n  oldPath = shell(\"Path\")\n  newPath = oldPath & \";\" & path\n  \n  shell(\"Path\") = newPath\nEnd Sub\n\n'------------------------------------------------\n' Checks if the path is already present. \nFunction PathIsPresent(path)\n  Dim script, shell, currentPath\n  Set script = Wscript.CreateObject(\"Wscript.Shell\")\n  Set shell = script.Environment(\"SYSTEM\")\n  \n  currentPath = shell(\"Path\")\n  \n  PathIsPresent = (InStr(LCase(currentPath), LCase(path)) <> 0)\nEnd Function\n\n'------------------------------------------------\n' Removes a path from the environment variable. \nSub PathRemove(path)\n  If Not PathIsPresent(path) Then\n    Exit Sub\n  End If\n\n  ' Get the value of the PATH environment variable\n  Dim script, shell, newPath, oldPath\n  Set script = Wscript.CreateObject(\"Wscript.Shell\")\n  Set shell = script.Environment(\"SYSTEM\")\n  \n  oldPath = shell(\"Path\")\n  newPath = Replace(oldPath, \";\" & path, \"\")\n  \n  If Len(newPath) < 5 Then\n    PrintError(\"Could not remove that path variable\")\n  End If\n  \n  shell(\"Path\") = newPath\nEnd Sub\n\n'------------------------------------------------\n' Exits the script with an error. \nSub PrintError(message)\n  Wscript.Echo \"An error occurred:\" & Chr(10) & message\n  WScript.Quit(1)\nEnd Sub\n\n'------------------------------------------------\n' Prints out the normal program usage parameters\nSub PrintUsage(message)\n  Dim usage\n  \n  If Len(message) > 0 Then\n    usage = message & Chr(10)\n  End If\n\n  usage = \"Path Setup\" & Chr(10) & usage & Chr(10) & \"Usage: \" & _\n          \"cscript.exe PathSetup.vbs [OPTIONS]\" & Chr(10) & Chr(10) & _\n          \"Options:\" & Chr(10) & _\n          \"  --path-add [PATH]\" & Chr(10) & _\n          \"  --path-remove [PATH]\" & Chr(10) & _\n          \"  --help\" & Chr(10)\n  Wscript.Echo usage\nEnd Sub\n\n' Start program here\nCall Main()\n"
  }
]