Skip to content

Instantly share code, notes, and snippets.

@mmorton
Created June 29, 2010 23:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save mmorton/457973 to your computer and use it in GitHub Desktop.
Save mmorton/457973 to your computer and use it in GitHub Desktop.
@echo off
if .%1. == .. (
echo USAGE: %0 [product name]
goto :EOF
)
set PRODUCT=argos-%1
echo.
echo *** Setup and Build utility for %PRODUCT% ***
echo.
if not exist products\%PRODUCT% (
echo.
echo ******* ERROR *******
echo "products\%PRODUCT%" does not exist.
echo This utility should be run from the gobiplatform root,
echo where \gobi-sdk and \products are subdirectories.
echo.
goto :EOF
)
echo *******************************
echo Building Argos SDK
echo *******************************
pushd argos-sdk
call build\release.cmd
if %errorlevel% neq 0 (
popd
exit /b %errorlevel%
)
popd
echo *******************************
echo Building Product: %1
echo *******************************
pushd products\%PRODUCT%
call build\release.cmd
if %errorlevel% neq 0 (
popd
exit /b %errorlevel%
)
popd
if not exist deploy\%PRODUCT% (
mkdir deploy\%PRODUCT%
)
echo *******************************
echo Deploying Product: %1
echo *******************************
if exist deploy\%PRODUCT% (
rmdir deploy\%PRODUCT% /S /Q
)
mkdir deploy\%PRODUCT%
xcopy argos-sdk\deploy\*.* deploy\%PRODUCT% /E /Y /Q
xcopy products\%PRODUCT%\deploy\*.* deploy\%PRODUCT% /E /Y /Q
:END
echo *******************************
echo Done
echo *******************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment