stamp the commit into the stage2 package
This commit is contained in:
parent
df8ac0c7ce
commit
dcb5e7e7ee
2 changed files with 8 additions and 0 deletions
|
@ -144,6 +144,10 @@ xcopy /s /q "%DNX_ROOT%" "%STAGE2_DIR%\dnx\"
|
||||||
REM Copy the dotnet-restore script
|
REM Copy the dotnet-restore script
|
||||||
copy "%~dp0dotnet-restore.cmd" "%STAGE2_DIR%\dotnet-restore.cmd"
|
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
|
REM Smoke-test the output
|
||||||
set PATH=%STAGE2_DIR%;%START_PATH%
|
set PATH=%STAGE2_DIR%;%START_PATH%
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,10 @@ cp -R $DNX_ROOT $STAGE2_DIR/dnx
|
||||||
cp $DIR/dotnet-restore.sh $STAGE2_DIR/dotnet-restore
|
cp $DIR/dotnet-restore.sh $STAGE2_DIR/dotnet-restore
|
||||||
chmod a+x $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
|
# Smoke-test the output
|
||||||
banner "Testing stage2 ..."
|
banner "Testing stage2 ..."
|
||||||
export PATH=$STAGE2_DIR:$START_PATH
|
export PATH=$STAGE2_DIR:$START_PATH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue