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:
-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