From 5916b0026171d0f4bafbd2603d2bad21464693fb Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 10 Feb 2016 13:05:46 -0800 Subject: [PATCH] Fix handling of bin directory --- build.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/build.sh b/build.sh index 2b3d8b2ed2..5750919f96 100755 --- a/build.sh +++ b/build.sh @@ -1,19 +1,17 @@ #!/usr/bin/env bash export BIN=$(pwd)/bin +mkdir -p $BIN # Build native components -( - cd src/libpsl-native - cmake -DCMAKE_BUILD_TYPE=Debug . - make -j - ctest -V - cp src/libpsl-native.* $BIN -) +pushd src/libpsl-native +cmake -DCMAKE_BUILD_TYPE=Debug . +make -j +ctest -V +cp src/libpsl-native.* $BIN +popd # Publish PowerShell -( - cd src/Microsoft.PowerShell.Linux.Host - dotnet publish --framework dnxcore50 --output $BIN --configuration Linux - # Copy files that dotnet-publish does not currently deploy -) +pushd src/Microsoft.PowerShell.Linux.Host +dotnet publish --framework dnxcore50 --output $BIN --configuration Linux +popd