PowerShell/scripts/runps.sh
Andrew Schwartzmeyer 1a3d4aa9a6 Refactor host usage
Build scripts and powershell-simple.cs were refactored to work with the
patch to CoreCLR and updated hosting code.

- Paths in Makefile were fixed because the hosting code runs the
  assembly from the current working directory (usually app_base)
- runps scripts were all fixed because the hosting code CLI changed
- powershell-simple.cs was cleaned up because its Main function is now
  directly executed
- monad submodule was repinned while we had the change
- monad-ext submodule was updated with rebuild CoreCLR binaries
- monad-native submodule was repinned to development, including fixed
  test and hosting code changes
2015-08-21 17:43:46 -07:00

7 lines
295 B
Bash
Executable file

#!/bin/bash
CWD=$(pwd)
SCRIPTDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
cd "$SCRIPTDIR"
PSMODULEPATH="$SCRIPTDIR/Modules" LD_LIBRARY_PATH="$SCRIPTDIR" ./host_cmdline -c ../coreclr -alc Microsoft.PowerShell.CoreCLR.AssemblyLoadContext.dll -tpa powershell-run.exe powershell-run.exe "$@"