Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add upload command to vcbuild.bat

  • Loading branch information...
ry committed Nov 11, 2011
1 parent 895fa3a commit 2af643161965182b8e19f7f2afa32c47cf0dcac4
Showing with 16 additions and 0 deletions.
  1. +16 −0 vcbuild.bat
@@ -19,6 +19,7 @@ set nobuild=
set test=
set test_args=
set msi=
set upload=

:next-arg
if "%1"=="" goto args-done
@@ -35,10 +36,12 @@ if /i "%1"=="test-message" set test=test-message&goto arg-ok
if /i "%1"=="test-all" set test=test-all&goto arg-ok
if /i "%1"=="test" set test=test&goto arg-ok
if /i "%1"=="msi" set msi=1&goto arg-ok
if /i "%1"=="upload" set upload=1&goto arg-ok
:arg-ok
shift
goto next-arg
:args-done
if defined upload goto upload


:project-gen
@@ -103,6 +106,19 @@ goto exit
echo Failed to create vc project files.
goto exit

:upload
echo uploading .exe .msi .pdb to nodejs.org
python "%~dp0tools\getnodeversion.py" > "%temp%\node_version.txt"
if not errorlevel 0 echo Cannot determine current version of node.js & goto exit
for /F "tokens=*" %%i in (%temp%\node_version.txt) do set NODE_VERSION=%%i
@echo on
ssh node@nodejs.org mkdir -p web/nodejs.org/dist/v%NODE_VERSION%
scp Release\node.msi node@nodejs.org:~/web/nodejs.org/dist/v%NODE_VERSION%/node-%NODE_VERSION%.msi
scp Release\node.exe node@nodejs.org:~/web/nodejs.org/dist/v%NODE_VERSION%/node.exe
scp Release\node.pdb node@nodejs.org:~/web/nodejs.org/dist/v%NODE_VERSION%/node.pdb
@echo off
goto exit

:help
echo vcbuild.bat [debug/release] [msi] [test-all/test-uv/test-internet/test-pummel/test-simple/test-message] [clean] [noprojgen] [nobuild]
echo Examples:

0 comments on commit 2af6431

Please sign in to comment.
You can’t perform that action at this time.