Skip to content

Commit 3e54085

Browse files
Add a couple of helper scripts for Win32 library fetching
1 parent 7c052de commit 3e54085

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

prebuilt/fetch.gyp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@
173173

174174
'outputs':
175175
[
176-
'lib/win32/i386',
176+
'lib/win32/<(target_arch)',
177177
],
178178

179179
'action':
180180
[
181+
'../util/invoke-unix.bat',
181182
'./fetch-libraries.sh',
182183
'win32',
183184
],

util/invoke-unix-wine.exe

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# Just run the command given
4+
command=$1
5+
shift
6+
7+
"$command" $@
8+

util/invoke-unix.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
3+
REM This batch file forwards commands to a Unix-like shell
4+
5+
IF EXIST C:\Cygwin\bin (
6+
C:\Cygwin\bin\bash.exe -c '%*'
7+
) ELSE (
8+
invoke-unix-wine.exe %*
9+
)
10+
11+
EXIT %ERRORLEVEL%
12+

0 commit comments

Comments
 (0)