Index: chrome/tools/build/win/version.bat |
diff --git a/chrome/tools/build/win/version.bat b/chrome/tools/build/win/version.bat |
deleted file mode 100755 |
index fd9f452a1baba72cc9580a14141ef55ebbf51007..0000000000000000000000000000000000000000 |
--- a/chrome/tools/build/win/version.bat |
+++ /dev/null |
@@ -1,64 +0,0 @@ |
-@echo off |
-:: Copyright (c) 2011 The Chromium Authors. All rights reserved. |
-:: Use of this source code is governed by a BSD-style license that can be |
-:: found in the LICENSE file. |
- |
-:: Batch file run as build command for chrome_dll.vcproj |
- |
-setlocal |
- |
-set InFile=%~1 |
-set SolutionDir=%~2 |
-set IntDir=%~3 |
-set OutFile=%~4 |
-set LastChangeDir=%~5 |
-set VarsBat=%IntDir%/vers-vars.bat |
- |
-:: Put cygwin in the path |
-call %SolutionDir%\..\third_party\cygwin\setup_env.bat |
- |
-:: Load version digits as environment variables |
-cat %SolutionDir%\VERSION | sed "s/\(.*\)/set \1/" > %VarsBat% |
- |
-:: Load branding strings as environment variables |
-set Distribution="chromium" |
-if "%CHROMIUM_BUILD%" == "_google_chrome" set Distribution="google_chrome" |
-cat %SolutionDir%app\theme\%Distribution%\BRANDING | sed "s/\(.*\)/set \1/" >> %VarsBat% |
- |
-set OFFICIAL_BUILD=0 |
-if "%CHROME_BUILD_TYPE%" == "_official" set OFFICIAL_BUILD=1 |
- |
-:: Look if subversion client is available. It may not be available on Windows |
-:: if downloaded with a tarball or depot_tools is not in the PATH. |
-call svn --version 2>nul 1>nul |
-:: If not available, just skip getting the revision number. |
-if errorlevel 1 goto :NO_SVN |
-goto :SET_ENV |
- |
-:NO_SVN |
-:: Not having svn makes it impossible to determine the current checkout revision |
-:: number. On normal build, this is not an issue but for official builds, this |
-:: *can't* be tolerated so issue an error instead. VS will pick it up corectly. |
-set NO_SVN_LEVEL=error |
-if "%OFFICIAL_BUILD%" == "0" set NO_SVN_LEVEL=warning |
-echo %0(28) : %NO_SVN_LEVEL% : svn is not installed. |
- |
-:SET_ENV |
-python %LastChangeDir%\lastchange.py | sed "s/\(.*\)/set \1/" >> %VarsBat% |
- |
-call %VarsBat% |
-:: output file |
-cat %InFile% | sed "s/@MAJOR@/%MAJOR%/" ^ |
- | sed "s/@MINOR@/%MINOR%/" ^ |
- | sed "s/@BUILD@/%BUILD%/" ^ |
- | sed "s/@PATCH@/%PATCH%/" ^ |
- | sed "s/@COMPANY_FULLNAME@/%COMPANY_FULLNAME%/" ^ |
- | sed "s/@COMPANY_SHORTNAME@/%COMPANY_SHORTNAME%/" ^ |
- | sed "s/@PRODUCT_FULLNAME@/%PRODUCT_FULLNAME%/" ^ |
- | sed "s/@PRODUCT_SHORTNAME@/%PRODUCT_SHORTNAME%/" ^ |
- | sed "s/@PRODUCT_EXE@/%PRODUCT_EXE%/" ^ |
- | sed "s/@COPYRIGHT@/%COPYRIGHT%/" ^ |
- | sed "s/@OFFICIAL_BUILD@/%OFFICIAL_BUILD%/" ^ |
- | sed "s/@LASTCHANGE@/%LASTCHANGE%/" > %OutFile% |
- |
-endlocal |