Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2018-10-17 13:50:11 +0300
committerGitHub <noreply@github.com>2018-10-17 13:50:11 +0300
commita2f0c286af22de452a8584256dd8fc46234639b9 (patch)
treef43e2117ec1a23d545d9959ca7b428896dc75601 /packaging
parent237482628a63ba651616c7d192c0278a5c9c8762 (diff)
[pkg] Add preinstall which removes existing Mono of the same version (#11203)
Fixes https://github.com/mono/mono/issues/11202
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/MacSDK/packaging/resources/preinstall9
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/MacSDK/packaging/resources/preinstall b/packaging/MacSDK/packaging/resources/preinstall
new file mode 100755
index 00000000000..13594e1d67e
--- /dev/null
+++ b/packaging/MacSDK/packaging/resources/preinstall
@@ -0,0 +1,9 @@
+#!/bin/sh -x
+
+PREVIOUS_INSTALL=/Library/Frameworks/Mono.framework/Versions/@@MONO_VERSION@@
+
+# delete any preexisting install of this version
+# to make sure we're starting from a clean slate
+if [ -d "$PREVIOUS_INSTALL" ]; then
+ rm -rf "$PREVIOUS_INSTALL"
+fi