Commit 5ffe961d by huahua

提交

parent 3eb347fd

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
//调转登录选择页面判断 //调转登录选择页面判断
toPageLogin() { toPageLogin() {
/* uni.reLaunch({
url: '/pages/login/select_login'
}); */
uni.reLaunch({ uni.reLaunch({
url: '/pages/login/select_login?machine_id=' + this.globalData.machine_id + url: '/pages/login/select_login?machine_id=' + this.globalData.machine_id +
'&language=' + this._i18n.locale //+ "&isLoadComplete=true" '&language=' + this._i18n.locale //+ "&isLoadComplete=true"
...@@ -225,14 +221,18 @@ ...@@ -225,14 +221,18 @@
} }
} else { } else {
let hrefStr = window.location.href; let hrefStr = window.location.href;
console.log(hrefStr)
if (hrefStr.indexOf("mine/pay_paypal") != -1 || if (hrefStr.indexOf("mine/pay_paypal") != -1 ||
hrefStr.indexOf("mine/pay_success") != -1 || hrefStr.indexOf("mine/pay_success") != -1 ||
hrefStr.indexOf("mine/pay_fail") != -1 || hrefStr.indexOf("mine/pay_fail") != -1 ||
hrefStr.indexOf("mine/orderDetail") != -1 || hrefStr.indexOf("mine/orderDetail") != -1 ||
hrefStr.indexOf("login/login") != -1 || hrefStr.indexOf("login/login") != -1 ||
hrefStr.includes("redden-tech.com") || hrefStr.includes("redden-tech.com")!= -1 ||
hrefStr.includes("app.changchang9.com")!= -1 ||
hrefStr.includes("tinyurl.com/2dywfljv")!= -1 ||
hrefStr.indexOf("login/select_login") != -1 || hrefStr.indexOf("login/select_login") != -1 ||
hrefStr.indexOf("mine/pay_juhe") != -1 hrefStr.indexOf("mine/pay_juhe") != -1 ||
hrefStr.indexOf("mine/pay_ygj") != -1
) { ) {
} else { } else {
...@@ -265,21 +265,13 @@ ...@@ -265,21 +265,13 @@
uni.setStorageSync('uid', result.uid); uni.setStorageSync('uid', result.uid);
console.log(result) console.log(result)
}).catch(err => { }).catch(err => {
console.log("sdvfcdsvsdf") //console.log("sdvfcdsvsdf")
/* if (promoter_id != "" && promoter_id != "null") {
} else {
promoter_id = ""
} */
this.toPageLogin(); this.toPageLogin();
}) })
} else { } else {
/* if (promoter_id != "" && promoter_id != "null") {
} else {
promoter_id = ""
} */
this.toPageLogin(); this.toPageLogin();
} }
}, },
...@@ -306,6 +298,8 @@ ...@@ -306,6 +298,8 @@
onLoad: function(options) { onLoad: function(options) {
} }
} }
</script> </script>
......
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../acorn/bin/acorn" "$@" "$basedir/node" "$basedir/../acorn/bin/acorn" "$@"
ret=$?
else else
exec node "$basedir/../acorn/bin/acorn" "$@" node "$basedir/../acorn/bin/acorn" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\acorn\bin\acorn" %* "%_prog%" "%dp0%\..\acorn\bin\acorn" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
} else {
& "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args & "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../acorn/bin/acorn" $args
} else {
& "node$exe" "$basedir/../acorn/bin/acorn" $args & "node$exe" "$basedir/../acorn/bin/acorn" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../asar/bin/asar.js" "$@" "$basedir/node" "$basedir/../asar/bin/asar.js" "$@"
ret=$?
else else
exec node "$basedir/../asar/bin/asar.js" "$@" node "$basedir/../asar/bin/asar.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\asar\bin\asar.js" %* "%_prog%" "%dp0%\..\asar\bin\asar.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../asar/bin/asar.js" $args
} else {
& "$basedir/node$exe" "$basedir/../asar/bin/asar.js" $args & "$basedir/node$exe" "$basedir/../asar/bin/asar.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../asar/bin/asar.js" $args
} else {
& "node$exe" "$basedir/../asar/bin/asar.js" $args & "node$exe" "$basedir/../asar/bin/asar.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../atob/bin/atob.js" "$@" "$basedir/node" "$basedir/../atob/bin/atob.js" "$@"
ret=$?
else else
exec node "$basedir/../atob/bin/atob.js" "$@" node "$basedir/../atob/bin/atob.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\atob\bin\atob.js" %* "%_prog%" "%dp0%\..\atob\bin\atob.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../atob/bin/atob.js" $args
} else {
& "$basedir/node$exe" "$basedir/../atob/bin/atob.js" $args & "$basedir/node$exe" "$basedir/../atob/bin/atob.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../atob/bin/atob.js" $args
} else {
& "node$exe" "$basedir/../atob/bin/atob.js" $args & "node$exe" "$basedir/../atob/bin/atob.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../dir-compare/src/cli/dircompare.js" "$@" "$basedir/node" "$basedir/../dir-compare/src/cli/dircompare.js" "$@"
ret=$?
else else
exec node "$basedir/../dir-compare/src/cli/dircompare.js" "$@" node "$basedir/../dir-compare/src/cli/dircompare.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\dir-compare\src\cli\dircompare.js" %* "%_prog%" "%dp0%\..\dir-compare\src\cli\dircompare.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../dir-compare/src/cli/dircompare.js" $args
} else {
& "$basedir/node$exe" "$basedir/../dir-compare/src/cli/dircompare.js" $args & "$basedir/node$exe" "$basedir/../dir-compare/src/cli/dircompare.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../dir-compare/src/cli/dircompare.js" $args
} else {
& "node$exe" "$basedir/../dir-compare/src/cli/dircompare.js" $args & "node$exe" "$basedir/../dir-compare/src/cli/dircompare.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../ejs/bin/cli.js" "$@" "$basedir/node" "$basedir/../ejs/bin/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../ejs/bin/cli.js" "$@" node "$basedir/../ejs/bin/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\ejs\bin\cli.js" %* "%_prog%" "%dp0%\..\ejs\bin\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../ejs/bin/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../ejs/bin/cli.js" $args & "$basedir/node$exe" "$basedir/../ejs/bin/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../ejs/bin/cli.js" $args
} else {
& "node$exe" "$basedir/../ejs/bin/cli.js" $args & "node$exe" "$basedir/../ejs/bin/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../electron/cli.js" "$@" "$basedir/node" "$basedir/../electron/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../electron/cli.js" "$@" node "$basedir/../electron/cli.js" "$@"
ret=$?
fi fi
exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../electron-builder/cli.js" "$@" "$basedir/node" "$basedir/../electron-builder/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../electron-builder/cli.js" "$@" node "$basedir/../electron-builder/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\electron-builder\cli.js" %* "%_prog%" "%dp0%\..\electron-builder\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../electron-builder/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../electron-builder/cli.js" $args & "$basedir/node$exe" "$basedir/../electron-builder/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../electron-builder/cli.js" $args
} else {
& "node$exe" "$basedir/../electron-builder/cli.js" $args & "node$exe" "$basedir/../electron-builder/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" "$@" "$basedir/node" "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" "$@"
ret=$?
else else
exec node "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" "$@" node "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\electron-osx-sign\bin\electron-osx-flat.js" %* "%_prog%" "%dp0%\..\electron-osx-sign\bin\electron-osx-flat.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" $args
} else {
& "$basedir/node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" $args & "$basedir/node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" $args
} else {
& "node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" $args & "node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-flat.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" "$@" "$basedir/node" "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" "$@"
ret=$?
else else
exec node "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" "$@" node "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\electron-osx-sign\bin\electron-osx-sign.js" %* "%_prog%" "%dp0%\..\electron-osx-sign\bin\electron-osx-sign.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" $args
} else {
& "$basedir/node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" $args & "$basedir/node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" $args
} else {
& "node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" $args & "node$exe" "$basedir/../electron-osx-sign/bin/electron-osx-sign.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\electron\cli.js" %* "%_prog%" "%dp0%\..\electron\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../electron/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../electron/cli.js" $args & "$basedir/node$exe" "$basedir/../electron/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../electron/cli.js" $args
} else {
& "node$exe" "$basedir/../electron/cli.js" $args & "node$exe" "$basedir/../electron/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../errno/cli.js" "$@" "$basedir/node" "$basedir/../errno/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../errno/cli.js" "$@" node "$basedir/../errno/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\errno\cli.js" %* "%_prog%" "%dp0%\..\errno\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../errno/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../errno/cli.js" $args & "$basedir/node$exe" "$basedir/../errno/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../errno/cli.js" $args
} else {
& "node$exe" "$basedir/../errno/cli.js" $args & "node$exe" "$basedir/../errno/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../extract-zip/cli.js" "$@" "$basedir/node" "$basedir/../extract-zip/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../extract-zip/cli.js" "$@" node "$basedir/../extract-zip/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\extract-zip\cli.js" %* "%_prog%" "%dp0%\..\extract-zip\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../extract-zip/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../extract-zip/cli.js" $args & "$basedir/node$exe" "$basedir/../extract-zip/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../extract-zip/cli.js" $args
} else {
& "node$exe" "$basedir/../extract-zip/cli.js" $args & "node$exe" "$basedir/../extract-zip/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../electron-builder/install-app-deps.js" "$@" "$basedir/node" "$basedir/../electron-builder/install-app-deps.js" "$@"
ret=$?
else else
exec node "$basedir/../electron-builder/install-app-deps.js" "$@" node "$basedir/../electron-builder/install-app-deps.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\electron-builder\install-app-deps.js" %* "%_prog%" "%dp0%\..\electron-builder\install-app-deps.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../electron-builder/install-app-deps.js" $args
} else {
& "$basedir/node$exe" "$basedir/../electron-builder/install-app-deps.js" $args & "$basedir/node$exe" "$basedir/../electron-builder/install-app-deps.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../electron-builder/install-app-deps.js" $args
} else {
& "node$exe" "$basedir/../electron-builder/install-app-deps.js" $args & "node$exe" "$basedir/../electron-builder/install-app-deps.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../is-ci/bin.js" "$@" "$basedir/node" "$basedir/../is-ci/bin.js" "$@"
ret=$?
else else
exec node "$basedir/../is-ci/bin.js" "$@" node "$basedir/../is-ci/bin.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\is-ci\bin.js" %* "%_prog%" "%dp0%\..\is-ci\bin.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../is-ci/bin.js" $args
} else {
& "$basedir/node$exe" "$basedir/../is-ci/bin.js" $args & "$basedir/node$exe" "$basedir/../is-ci/bin.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../is-ci/bin.js" $args
} else {
& "node$exe" "$basedir/../is-ci/bin.js" $args & "node$exe" "$basedir/../is-ci/bin.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../jake/bin/cli.js" "$@" "$basedir/node" "$basedir/../jake/bin/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../jake/bin/cli.js" "$@" node "$basedir/../jake/bin/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\jake\bin\cli.js" %* "%_prog%" "%dp0%\..\jake\bin\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../jake/bin/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../jake/bin/cli.js" $args & "$basedir/node$exe" "$basedir/../jake/bin/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../jake/bin/cli.js" $args
} else {
& "node$exe" "$basedir/../jake/bin/cli.js" $args & "node$exe" "$basedir/../jake/bin/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@" "$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@"
ret=$?
else else
exec node "$basedir/../js-yaml/bin/js-yaml.js" "$@" node "$basedir/../js-yaml/bin/js-yaml.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\js-yaml\bin\js-yaml.js" %* "%_prog%" "%dp0%\..\js-yaml\bin\js-yaml.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
} else {
& "$basedir/node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args & "$basedir/node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
} else {
& "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args & "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../json5/lib/cli.js" "$@" "$basedir/node" "$basedir/../json5/lib/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../json5/lib/cli.js" "$@" node "$basedir/../json5/lib/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\json5\lib\cli.js" %* "%_prog%" "%dp0%\..\json5\lib\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args & "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../json5/lib/cli.js" $args
} else {
& "node$exe" "$basedir/../json5/lib/cli.js" $args & "node$exe" "$basedir/../json5/lib/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../miller-rabin/bin/miller-rabin" "$@" "$basedir/node" "$basedir/../miller-rabin/bin/miller-rabin" "$@"
ret=$?
else else
exec node "$basedir/../miller-rabin/bin/miller-rabin" "$@" node "$basedir/../miller-rabin/bin/miller-rabin" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\miller-rabin\bin\miller-rabin" %* "%_prog%" "%dp0%\..\miller-rabin\bin\miller-rabin" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../miller-rabin/bin/miller-rabin" $args
} else {
& "$basedir/node$exe" "$basedir/../miller-rabin/bin/miller-rabin" $args & "$basedir/node$exe" "$basedir/../miller-rabin/bin/miller-rabin" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../miller-rabin/bin/miller-rabin" $args
} else {
& "node$exe" "$basedir/../miller-rabin/bin/miller-rabin" $args & "node$exe" "$basedir/../miller-rabin/bin/miller-rabin" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../mime/cli.js" "$@" "$basedir/node" "$basedir/../mime/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../mime/cli.js" "$@" node "$basedir/../mime/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mime\cli.js" %* "%_prog%" "%dp0%\..\mime\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../mime/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../mime/cli.js" $args & "$basedir/node$exe" "$basedir/../mime/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../mime/cli.js" $args
} else {
& "node$exe" "$basedir/../mime/cli.js" $args & "node$exe" "$basedir/../mime/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@" "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
ret=$?
else else
exec node "$basedir/../mkdirp/bin/cmd.js" "$@" node "$basedir/../mkdirp/bin/cmd.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %* "%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
} else {
& "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
} else {
& "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../which/bin/node-which" "$@" "$basedir/node" "$basedir/../which/bin/node-which" "$@"
ret=$?
else else
exec node "$basedir/../which/bin/node-which" "$@" node "$basedir/../which/bin/node-which" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\which\bin\node-which" %* "%_prog%" "%dp0%\..\which\bin\node-which" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
} else {
& "$basedir/node$exe" "$basedir/../which/bin/node-which" $args & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../which/bin/node-which" $args
} else {
& "node$exe" "$basedir/../which/bin/node-which" $args & "node$exe" "$basedir/../which/bin/node-which" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../os-name/cli.js" "$@" "$basedir/node" "$basedir/../os-name/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../os-name/cli.js" "$@" node "$basedir/../os-name/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\os-name\cli.js" %* "%_prog%" "%dp0%\..\os-name\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../os-name/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../os-name/cli.js" $args & "$basedir/node$exe" "$basedir/../os-name/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../os-name/cli.js" $args
} else {
& "node$exe" "$basedir/../os-name/cli.js" $args & "node$exe" "$basedir/../os-name/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../osx-release/cli.js" "$@" "$basedir/node" "$basedir/../osx-release/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../osx-release/cli.js" "$@" node "$basedir/../osx-release/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\osx-release\cli.js" %* "%_prog%" "%dp0%\..\osx-release\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../osx-release/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../osx-release/cli.js" $args & "$basedir/node$exe" "$basedir/../osx-release/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../osx-release/cli.js" $args
} else {
& "node$exe" "$basedir/../osx-release/cli.js" $args & "node$exe" "$basedir/../osx-release/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
else
exec node "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
fi
@ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\@babel\parser\bin\babel-parser.js" %*
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
} else {
& "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
} else {
& "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
}
$ret=$LASTEXITCODE
}
exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../nanoid/bin/nanoid.cjs" "$@" "$basedir/node" "$basedir/../qrcode/bin/qrcode" "$@"
ret=$?
else else
exec node "$basedir/../nanoid/bin/nanoid.cjs" "$@" node "$basedir/../qrcode/bin/qrcode" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\nanoid\bin\nanoid.cjs" %* "%_prog%" "%dp0%\..\qrcode\bin\qrcode" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input & "$basedir/node$exe" "$basedir/../qrcode/bin/qrcode" $args
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
} else {
& "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input & "node$exe" "$basedir/../qrcode/bin/qrcode" $args
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
} else {
& "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../rc/cli.js" "$@" "$basedir/node" "$basedir/../rc/cli.js" "$@"
ret=$?
else else
exec node "$basedir/../rc/cli.js" "$@" node "$basedir/../rc/cli.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rc\cli.js" %* "%_prog%" "%dp0%\..\rc\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../rc/cli.js" $args
} else {
& "$basedir/node$exe" "$basedir/../rc/cli.js" $args & "$basedir/node$exe" "$basedir/../rc/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../rc/cli.js" $args
} else {
& "node$exe" "$basedir/../rc/cli.js" $args & "node$exe" "$basedir/../rc/cli.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../resolve/bin/resolve" "$@" "$basedir/node" "$basedir/../resolve/bin/resolve" "$@"
ret=$?
else else
exec node "$basedir/../resolve/bin/resolve" "$@" node "$basedir/../resolve/bin/resolve" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\resolve\bin\resolve" %* "%_prog%" "%dp0%\..\resolve\bin\resolve" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
} else {
& "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args & "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../resolve/bin/resolve" $args
} else {
& "node$exe" "$basedir/../resolve/bin/resolve" $args & "node$exe" "$basedir/../resolve/bin/resolve" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../rimraf/bin.js" "$@" "$basedir/node" "$basedir/../rimraf/bin.js" "$@"
ret=$?
else else
exec node "$basedir/../rimraf/bin.js" "$@" node "$basedir/../rimraf/bin.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rimraf\bin.js" %* "%_prog%" "%dp0%\..\rimraf\bin.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args
} else {
& "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args & "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../rimraf/bin.js" $args
} else {
& "node$exe" "$basedir/../rimraf/bin.js" $args & "node$exe" "$basedir/../rimraf/bin.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@" "$basedir/node" "$basedir/../semver/bin/semver.js" "$@"
ret=$?
else else
exec node "$basedir/../semver/bin/semver.js" "$@" node "$basedir/../semver/bin/semver.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\semver\bin\semver.js" %* "%_prog%" "%dp0%\..\semver\bin\semver.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
} else {
& "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../semver/bin/semver.js" $args
} else {
& "node$exe" "$basedir/../semver/bin/semver.js" $args & "node$exe" "$basedir/../semver/bin/semver.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../sha.js/bin.js" "$@" "$basedir/node" "$basedir/../sha.js/bin.js" "$@"
ret=$?
else else
exec node "$basedir/../sha.js/bin.js" "$@" node "$basedir/../sha.js/bin.js" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\sha.js\bin.js" %* "%_prog%" "%dp0%\..\sha.js\bin.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../sha.js/bin.js" $args
} else {
& "$basedir/node$exe" "$basedir/../sha.js/bin.js" $args & "$basedir/node$exe" "$basedir/../sha.js/bin.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../sha.js/bin.js" $args
} else {
& "node$exe" "$basedir/../sha.js/bin.js" $args & "node$exe" "$basedir/../sha.js/bin.js" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../sshpk/bin/sshpk-conv" "$@" "$basedir/node" "$basedir/../sshpk/bin/sshpk-conv" "$@"
ret=$?
else else
exec node "$basedir/../sshpk/bin/sshpk-conv" "$@" node "$basedir/../sshpk/bin/sshpk-conv" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\sshpk\bin\sshpk-conv" %* "%_prog%" "%dp0%\..\sshpk\bin\sshpk-conv" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-conv" $args
} else {
& "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-conv" $args & "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-conv" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../sshpk/bin/sshpk-conv" $args
} else {
& "node$exe" "$basedir/../sshpk/bin/sshpk-conv" $args & "node$exe" "$basedir/../sshpk/bin/sshpk-conv" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../sshpk/bin/sshpk-sign" "$@" "$basedir/node" "$basedir/../sshpk/bin/sshpk-sign" "$@"
ret=$?
else else
exec node "$basedir/../sshpk/bin/sshpk-sign" "$@" node "$basedir/../sshpk/bin/sshpk-sign" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\sshpk\bin\sshpk-sign" %* "%_prog%" "%dp0%\..\sshpk\bin\sshpk-sign" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-sign" $args
} else {
& "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-sign" $args & "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-sign" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../sshpk/bin/sshpk-sign" $args
} else {
& "node$exe" "$basedir/../sshpk/bin/sshpk-sign" $args & "node$exe" "$basedir/../sshpk/bin/sshpk-sign" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../sshpk/bin/sshpk-verify" "$@" "$basedir/node" "$basedir/../sshpk/bin/sshpk-verify" "$@"
ret=$?
else else
exec node "$basedir/../sshpk/bin/sshpk-verify" "$@" node "$basedir/../sshpk/bin/sshpk-verify" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\sshpk\bin\sshpk-verify" %* "%_prog%" "%dp0%\..\sshpk\bin\sshpk-verify" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-verify" $args
} else {
& "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-verify" $args & "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-verify" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../sshpk/bin/sshpk-verify" $args
} else {
& "node$exe" "$basedir/../sshpk/bin/sshpk-verify" $args & "node$exe" "$basedir/../sshpk/bin/sshpk-verify" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
...@@ -6,7 +6,10 @@ case `uname` in ...@@ -6,7 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../terser/bin/terser" "$@" "$basedir/node" "$basedir/../terser/bin/terser" "$@"
ret=$?
else else
exec node "$basedir/../terser/bin/terser" "$@" node "$basedir/../terser/bin/terser" "$@"
ret=$?
fi fi
exit $ret
@ECHO off @ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL SETLOCAL
CALL :find_dp0 CALL :find_dp0
...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" ( ...@@ -14,4 +9,9 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;% SET PATHEXT=%PATHEXT:;.JS;=;%
) )
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\terser\bin\terser" %* "%_prog%" "%dp0%\..\terser\bin\terser" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b
...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { ...@@ -9,20 +9,10 @@ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
} }
$ret=0 $ret=0
if (Test-Path "$basedir/node$exe") { if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../terser/bin/terser" $args
} else {
& "$basedir/node$exe" "$basedir/../terser/bin/terser" $args & "$basedir/node$exe" "$basedir/../terser/bin/terser" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} else { } else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../terser/bin/terser" $args
} else {
& "node$exe" "$basedir/../terser/bin/terser" $args & "node$exe" "$basedir/../terser/bin/terser" $args
}
$ret=$LASTEXITCODE $ret=$LASTEXITCODE
} }
exit $ret exit $ret
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment