dotnet-installer/packaging/osx/scripts/postinstall
Piotr Puszkiewicz d1a257bff7 Merge pull request #625 from cdmihai/buildCommandWithSafetyChecks
Introduce --build-profile flag and precondition checking in the Build command
2015-12-28 10:46:27 -08:00

32 lines
1.2 KiB
Bash
Executable file

#!/bin/sh
#
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
PACKAGE=$1
INSTALL_DESTINATION=$2
# A temporary fix for the permissions issue(s)
chmod -R 755 $INSTALL_DESTINATION
ln -s $INSTALL_DESTINATION/bin/dotnet /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-compile /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-build /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-compile-csc /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-compile-fsc /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-new /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-pack /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-publish /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-repl /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-restore /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-resgen /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-run /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-test /usr/local/bin/
# A temporary solution to unblock dotnet compile
cp $INSTALL_DESTINATION/bin/corehost /usr/local/bin/
exit 0