dotnet-installer/packaging/osx/scripts/postinstall

27 lines
807 B
Text
Raw Normal View History

2015-10-23 11:10:47 -07:00
#!/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.
#
2015-10-23 11:10:47 -07:00
# A temporary fix for the permissions issue(s)
chmod -R 755 $2
ln -s $2/bin/dotnet /usr/local/bin/
ln -s $2/bin/dotnet-compile /usr/local/bin/
ln -s $2/bin/dotnet-compile-csc /usr/local/bin/
2015-12-08 10:54:03 -08:00
ln -s $2/bin/dotnet-new /usr/local/bin/
ln -s $2/bin/dotnet-pack /usr/local/bin/
ln -s $2/bin/dotnet-publish /usr/local/bin/
2015-12-08 10:54:03 -08:00
ln -s $2/bin/dotnet-repl /usr/local/bin/
ln -s $2/bin/dotnet-restore /usr/local/bin/
2015-12-01 22:12:04 +05:00
ln -s $2/bin/dotnet-resgen /usr/local/bin/
2015-12-08 10:54:03 -08:00
ln -s $2/bin/dotnet-run /usr/local/bin/
ln -s $2/bin/dotnet-test /usr/local/bin/
2015-10-23 11:10:47 -07:00
# A temporary solution to unblock dotnet compile
cp $2/bin/corehost /usr/local/bin/
2015-10-23 11:10:47 -07:00
exit 0