Created
February 7, 2011 22:52
-
-
Save mmorton/815451 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 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 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