1.1 --- a/OpenSecurity/cygwin/Cygwin.vbs Thu Jan 09 10:44:42 2014 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,50 +0,0 @@
1.4 -Option Explicit
1.5 -
1.6 -' ------------------------------------------------------------
1.7 -' start a cygwin shell
1.8 -'
1.9 -' Autor: Oliver Maurhart, <oliver.maurhart@ait.ac.at>
1.10 -'
1.11 -' Copyright (C) 2013 AIT Austrian Institute of Technology
1.12 -' AIT Austrian Institute of Technology GmbH
1.13 -' Donau-City-Strasse 1 | 1220 Vienna | Austria
1.14 -' http://www.ait.ac.at
1.15 -' ------------------------------------------------------------
1.16 -
1.17 -' ------------------------------------------------------------
1.18 -' This starts a cygwin shell within a relocatable cygwin
1.19 -' folder but without a DOS shell window prior. The idea is
1.20 -' to do it like in this BAT snippet below:
1.21 -'
1.22 -' @echo off
1.23 -' SET INSTALL_DRIVE=%~d0
1.24 -' SET INSTALL_FOLDER=%~p0
1.25 -' SET CYGWIN_BIN="%INSTALL_DRIVE%%INSTALL_FOLDER%bin"
1.26 -' SET CYGWIN_BASH="%INSTALL_DRIVE%%INSTALL_FOLDER%bin\bash"
1.27 -' %INSTALL_DRIVE%
1.28 -' chdir "%CYGWIN_BIN%"
1.29 -' start mintty.exe %CYGWIN_BASH% --login -i
1.30 -'
1.31 -' ------------------------------------------------------------
1.32 -
1.33 -' setup the basic objects
1.34 -Dim cFSO
1.35 -Dim cShell
1.36 -Set cShell = CreateObject("WScript.Shell")
1.37 -Set cFSO = CreateObject("Scripting.FileSystemObject")
1.38 -
1.39 -' parse script location and cd into folder
1.40 -Dim sPath
1.41 -sPath = Wscript.ScriptFullName
1.42 -sPath = cFSO.GetAbsolutePathName(sPath)
1.43 -sPath = cFSO.GetParentFolderName(sPath)
1.44 -cShell.CurrentDirectory = sPath
1.45 -
1.46 -' locations of mintty and bash
1.47 -Dim sMinTTYPath
1.48 -Dim sBashPath
1.49 -sMinTTYPath = """" & sPath & "\bin\mintty" & """"
1.50 -sBashPath = """" & sPath & "\bin\bash" & """"
1.51 -
1.52 -' start a cygwin shell
1.53 -cShell.Run sMinTTYPath & " " & sBashPath & " --login -i", 1, false