stamp the commit into the stage2 package

This commit is contained in:
Andrew Stanton-Nurse 2015-11-03 13:15:53 -08:00
parent df8ac0c7ce
commit dcb5e7e7ee
2 changed files with 8 additions and 0 deletions

View file

@ -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%

View file

@ -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