@echo off rem CCS Computer Science rem Build Finger Daemon rem rem Douglas Thrift rem rem $Id$ setlocal enableextensions enabledelayedexpansion if /i "%~1"=="x86" set PythonPlatform=win32 & goto begin if /i "%~1"=="x64" set PythonPlatform=win-amd64 & goto begin if /i "%~1"=="ia64" set PythonPlatform=win-ia64 & goto begin echo Usage: %0 [x86^|x64^|ia64] goto end :begin set DISTUTILS_USE_SDK=y set SetEnv="C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.Cmd" call %SetEnv% /Release /%~1 /xp color 07 title Command Prompt setup.py build -p %PythonPlatform% clean if errorlevel 1 goto end C:\cygwin\bin\touch.exe .%~1 attrib +H .%~1 :end endlocal