From a2f0c286af22de452a8584256dd8fc46234639b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Wed, 17 Oct 2018 12:50:11 +0200 Subject: [pkg] Add preinstall which removes existing Mono of the same version (#11203) Fixes https://github.com/mono/mono/issues/11202 --- packaging/MacSDK/packaging/resources/preinstall | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 packaging/MacSDK/packaging/resources/preinstall (limited to 'packaging') 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 -- cgit v1.2.3