diff --git a/debug.sh b/debug.sh new file mode 100755 index 0000000000..2aa16b9c1f --- /dev/null +++ b/debug.sh @@ -0,0 +1,2 @@ +export CORE_ROOT=$(pwd)/bin TEMP=/tmp +lldb-3.6 -o "plugin load ./bin/libsosplugin.so" -- ./powershell $@ diff --git a/publish.sh b/publish.sh index 26c81a731a..53cf34d0cb 100755 --- a/publish.sh +++ b/publish.sh @@ -1,23 +1,34 @@ #!/usr/bin/env bash +export BIN=$(pwd)/bin + +mkdir $BIN + # Build native components ( cd src/monad-native cmake -DCMAKE_BUILD_TYPE=Debug . make -j + 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 ) # Publish PowerShell ( cd src/Microsoft.PowerShell.Linux.Host - dotnet publish --framework dnxcore50 --runtime ubuntu.14.04-x64 --output ../../bin - cp *.ps1xml *_profile.ps1 ../../bin + 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 ) -# Copy Pester -mkdir -p bin/Modules/Pester -cp -r ext-src/pester/* bin/Modules/Pester - -# Patch -cp patches/*.dll bin/ -cp patches/runtime/*.so bin/ +# Deploy Pester +mkdir -p $BIN/Modules/Pester +cp -r ext-src/pester/* $BIN/Modules/Pester diff --git a/run.sh b/run.sh index d217680445..ce3b7b5983 100755 --- a/run.sh +++ b/run.sh @@ -1 +1,2 @@ -CORE_ROOT=$(pwd)/bin TEMP=/tmp LD_LIBRARY_PATH=$(pwd)/src/monad-native/native ./powershell +export CORE_ROOT=$(pwd)/bin TEMP=/tmp +./powershell $@