diff options
author | Alexis Christoforides <alexis@thenull.net> | 2017-04-27 18:17:59 +0300 |
---|---|---|
committer | Alexis Christoforides <alexis@thenull.net> | 2017-04-27 18:17:59 +0300 |
commit | f61b6ce5ab44663ec7644b6213d8ed0725511df7 (patch) | |
tree | 7b4c60a579c11316e97bb930f66f070e7b6ffc9d /packaging/MacSDK | |
parent | 7a1a832f6577ffb12d4d302d2868a5b1aaa5ec65 (diff) |
[MacSDK] Use msbuild's install script instead of duplicating it here
Diffstat (limited to 'packaging/MacSDK')
-rw-r--r-- | packaging/MacSDK/msbuild.py | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/packaging/MacSDK/msbuild.py b/packaging/MacSDK/msbuild.py index 3d123952f35..3b186576c43 100644 --- a/packaging/MacSDK/msbuild.py +++ b/packaging/MacSDK/msbuild.py @@ -11,47 +11,6 @@ class MSBuild (GitHubPackage): self.sh('./cibuild.sh --scope Compile --target Mono --host Mono') def install(self): - # adjusted from 'install-mono-prefix.sh' - - build_output = 'bin/Debug-MONO/OSX_Deployment' - new_location = os.path.join( - self.staged_prefix, - 'lib/mono/msbuild/%s/bin' % - self.version) - bindir = os.path.join(self.staged_prefix, 'bin') - - os.makedirs(new_location) - self.sh('cp -R %s/* %s' % (build_output, new_location)) - - os.makedirs(bindir) - - self.sh('cp msbuild-mono-deploy.in %s/msbuild' % bindir) - - xbuild_dir = os.path.join(self.staged_prefix, 'lib/mono/xbuild') - new_xbuild_tv_dir = os.path.join(xbuild_dir, self.version) - os.makedirs(new_xbuild_tv_dir) - - self.sh('mv %s/Microsoft.Common.props %s' % - (new_location, new_xbuild_tv_dir)) - self.sh('cp -R nuget-support/tv/ %s' % new_xbuild_tv_dir) - self.sh('cp -R nuget-support/tasks-targets/ %s/' % xbuild_dir) - for dep in glob.glob("%s/Microsoft/NuGet/*" % xbuild_dir): - self.sh('ln -s %s %s' % (dep, xbuild_dir)) - - for line in fileinput.input('%s/msbuild' % bindir, inplace=True): - line = line.replace('@bindir@', '%s/bin' % self.staged_prefix) - line = line.replace( - '@mono_instdir@', - '%s/lib/mono' % - self.staged_prefix) - print line - - patterns = ["*UnitTests*", "*xunit*", "NuGet*", "System.Runtime.InteropServices.RuntimeInformation.dll", - "Roslyn/csc.exe*"] - - for pattern in patterns: - for excluded in glob.glob("%s/%s" % (new_location, pattern)): - self.rm(excluded) - + self.sh('./install-mono-prefix.sh %s' % self.staged_prefix) MSBuild() |