2015-11-13 21:54:44 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2015-12-16 21:01:21 +00:00
|
|
|
export BIN=$(pwd)/bin
|
|
|
|
|
2015-12-16 23:34:05 +00:00
|
|
|
mkdir -p $BIN/Modules
|
|
|
|
|
2015-12-21 21:41:30 +00:00
|
|
|
# Deploy PowerShell modules
|
2015-12-16 23:34:05 +00:00
|
|
|
(
|
|
|
|
cd $BIN/Modules
|
2015-12-21 21:41:30 +00:00
|
|
|
ln -sf ../../ext-src/pester Pester
|
|
|
|
ln -sf ../../src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Utility .
|
2015-12-16 23:34:05 +00:00
|
|
|
)
|
2015-12-16 21:01:21 +00:00
|
|
|
|
2015-12-14 18:36:40 +00:00
|
|
|
# Build native components
|
|
|
|
(
|
|
|
|
cd src/monad-native
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Debug .
|
|
|
|
make -j
|
2015-12-16 21:01:21 +00:00
|
|
|
ctest -V
|
|
|
|
# Deploy development copy of libpsnative
|
|
|
|
cp native/libpsnative.so $BIN
|
|
|
|
)
|
|
|
|
|
|
|
|
# Build registry stub (this should go away, again)
|
|
|
|
(
|
|
|
|
cd src/registry-stub
|
|
|
|
make
|
|
|
|
cp api-ms-win-core-registry-l1-1-0.dll $BIN
|
2015-12-14 18:36:40 +00:00
|
|
|
)
|
|
|
|
|
2015-12-10 20:33:52 +00:00
|
|
|
# Publish PowerShell
|
2015-12-14 18:36:40 +00:00
|
|
|
(
|
|
|
|
cd src/Microsoft.PowerShell.Linux.Host
|
2015-12-16 21:01:21 +00:00
|
|
|
dotnet publish --framework dnxcore50 --runtime ubuntu.14.04-x64 --output $BIN
|
|
|
|
# Copy files that dotnet-publish doesn't currently deploy
|
|
|
|
cp *.ps1xml *_profile.ps1 $BIN
|
2015-12-14 18:36:40 +00:00
|
|
|
)
|