summaryrefslogtreecommitdiffhomepage
path: root/Create `Midipix mintty shell' shortcut.vbs
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-06-15 16:01:06 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-06-15 16:16:41 +0000
commit7927966d8799ccceeee04d1e9e7119f0cac65d7b (patch)
tree1ed6dafe26d90b7b9f712bcc2c220ceb16ed790d /Create `Midipix mintty shell' shortcut.vbs
parentafcefa6fa131bbcca37337471be260e3f9f22bae (diff)
downloadmidipix_build-7927966d8799ccceeee04d1e9e7119f0cac65d7b.tar.bz2
midipix_build-7927966d8799ccceeee04d1e9e7119f0cac65d7b.tar.xz
Disable NLS for all packages minus the runtime components.
Followup to <2696b7e8fb2972e72fab7ca8b5a3ab87022814af>: - Restore src/process/_execve.c NT_SEC_IMAGE vs. NT_SEC_RESERVE patch for builds on lucio-vm.local. to allow for running Midipix from a network share. Move previous psxscl patches into psxscl.local@lucio-vm.local.patch. Prevent Irssi from using g_child_watch_add_full() when resolving hostnames for testing purposes as clone(2) is not currently implemented. Updated Create `Midipix mintty shell' shortcut.vbs: - Always update the shortcut file. - Launch sh(1) instead of Mintty (via Elieux.) - Obtain the pathname to Cygwin from the command line, defaulting to `C:\cygwin64'. Updated midipix.sh: - Automatically determine ${MIDIPIX_DRIVE} and ${MIDIPIX_PNAME} via cygpath(1) (via Elieux.) - Export MSYS2_ARG_CONV_EXCL="*" when running within Msys (via Elieux.) - Prepend `/bin' to ${PATH} if not present (via Elieux.) - Set and restore the previous cygdrive prefix. - Use /proc/cygdrive instead of /cygdrive (via Elieux.)
Diffstat (limited to 'Create `Midipix mintty shell' shortcut.vbs')
-rw-r--r--Create `Midipix mintty shell' shortcut.vbs22
1 files changed, 9 insertions, 13 deletions
diff --git a/Create `Midipix mintty shell' shortcut.vbs b/Create `Midipix mintty shell' shortcut.vbs
index ab0d3bbd..ce8e10d4 100644
--- a/Create `Midipix mintty shell' shortcut.vbs
+++ b/Create `Midipix mintty shell' shortcut.vbs
@@ -1,18 +1,14 @@
Set WshShell = CreateObject("WScript.Shell")
-LinkPath = WshShell.CurrentDirectory + "\Midipix mintty shell.lnk"
If WScript.Arguments.Count = 0 Then
- MinttyPath = "C:\cygwin64\bin\mintty.exe"
+ CygwinPath = "C:\cygwin64"
Else
- MinttyPath = WScript.Arguments(0)
+ CygwinPath = WScript.Arguments(0)
End If
-
Set fso = CreateObject("Scripting.FileSystemObject")
-If not (fso.FileExists(LinkPath)) Then
- Set oMyShortCut = WshShell.CreateShortcut(LinkPath)
- oMyShortCut.WindowStyle = 4
- oMyShortcut.IconLocation = MinttyPath
- oMyShortCut.TargetPath = MinttyPath
- oMyShortCut.Arguments = "-i /Cygwin-Terminal.ico -e sh midipix.sh"
- oMyShortCut.WorkingDirectory = WshShell.CurrentDirectory
- oMyShortCut.Save
-End If
+Set oMyShortCut = WshShell.CreateShortcut(WshShell.CurrentDirectory + "\Midipix shell.lnk")
+oMyShortCut.Arguments = "midipix.sh"
+oMyShortcut.IconLocation = CygwinPath + "\Cygwin-Terminal.ico"
+oMyShortCut.TargetPath = CygwinPath + "\bin\sh.exe"
+oMyShortCut.WindowStyle = 4
+oMyShortCut.WorkingDirectory = WshShell.CurrentDirectory
+oMyShortCut.Save