build_llvm_package.bat: Use a short form of the git revision
authorHans Wennborg <hans@chromium.org>
Mon, 3 Feb 2020 15:39:18 +0000 (16:39 +0100)
committerHans Wennborg <hans@chromium.org>
Mon, 3 Feb 2020 15:40:10 +0000 (16:40 +0100)
llvm/utils/release/build_llvm_package.bat

index 078d64d..82d6076 100755 (executable)
@@ -27,9 +27,9 @@ set python64_dir=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python36
 for /f "usebackq" %%i in (`PowerShell ^(Get-Date^).ToString^('yyyyMMdd'^)`) do set datestamp=%%i\r
 \r
 set revision=%1\r
-set package_version=11.0.0-%revision%\r
+set package_version=11.0.0-%revision:~0,8%\r
 set clang_format_vs_version=11.0.0.%datestamp%\r
-set build_dir=llvm_package_%revision%\r
+set build_dir=llvm_package_%revision:~0,8%\r
 \r
 echo Revision: %revision%\r
 echo Package version: %package_version%\r