From dcb5e7e7ee6dc11a81abc63bf673714161e4cadd Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Tue, 3 Nov 2015 13:15:53 -0800 Subject: [PATCH] stamp the commit into the stage2 package --- scripts/bootstrap.cmd | 4 ++++ scripts/bootstrap.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scripts/bootstrap.cmd b/scripts/bootstrap.cmd index 3c3371871..e81a08599 100644 --- a/scripts/bootstrap.cmd +++ b/scripts/bootstrap.cmd @@ -144,6 +144,10 @@ xcopy /s /q "%DNX_ROOT%" "%STAGE2_DIR%\dnx\" REM Copy the dotnet-restore script copy "%~dp0dotnet-restore.cmd" "%STAGE2_DIR%\dotnet-restore.cmd" +REM Stamp the output with the commit metadata +git rev-parse HEAD > %STAGE2_DIR%/commit + + REM Smoke-test the output set PATH=%STAGE2_DIR%;%START_PATH% diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 7d56993cb..5a2655b91 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -101,6 +101,10 @@ cp -R $DNX_ROOT $STAGE2_DIR/dnx cp $DIR/dotnet-restore.sh $STAGE2_DIR/dotnet-restore chmod a+x $STAGE2_DIR/dotnet-restore +# Stamp the output with the commit metadata +COMMIT_ID=$(git rev-parse HEAD) +echo $COMMIT_ID > $STAGE2_DIR/commit + # Smoke-test the output banner "Testing stage2 ..." export PATH=$STAGE2_DIR:$START_PATH