From 9914f98e3191e776fcfc62fbded6f9ab84d2935a Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 2 Jun 2022 05:53:05 +0300 Subject: [PATCH 55/55] installer_cross: Make unistaller work for meson based builds See osdn #44741 Signed-off-by: Marko Lindqvist --- windows/installer_cross/create-freeciv-gtk-qt-nsi.sh | 6 +++--- windows/installer_cross/create-freeciv-ruledit-nsi.sh | 6 +++--- windows/installer_cross/create-freeciv-sdl2-nsi.sh | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh b/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh index 00b5069bf9..db9ada1242 100755 --- a/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh +++ b/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh @@ -307,7 +307,7 @@ EOF find $1 -type f | grep -v '/$' | -sed 's|[^/]*||' | +sed "s|$1||" | while read -r name do echo " Delete \"\$INSTDIR$name\"" | sed 's,/,\\,g' @@ -315,7 +315,7 @@ done find $1 -type l | grep -v '/$' | -sed 's|[^/]*||' | +sed "s|$1||" | while read -r name do echo " Delete \"\$INSTDIR$name\"" | sed 's,/,\\,g' @@ -323,7 +323,7 @@ done find $1 -depth -type d | grep -v '/$' | -sed 's|[^/]*||' | +sed "s|$1||" | while read -r name do echo " RMDir \"\$INSTDIR$name\"" | sed 's,/,\\,g' diff --git a/windows/installer_cross/create-freeciv-ruledit-nsi.sh b/windows/installer_cross/create-freeciv-ruledit-nsi.sh index 1a4d218ff7..ac1fbb3d71 100755 --- a/windows/installer_cross/create-freeciv-ruledit-nsi.sh +++ b/windows/installer_cross/create-freeciv-ruledit-nsi.sh @@ -273,7 +273,7 @@ EOF find $1 -type f | grep -v '/$' | -sed 's|[^/]*||' | +sed "s|$1||" | while read -r name do echo " Delete \"\$INSTDIR$name\"" | sed 's,/,\\,g' @@ -281,7 +281,7 @@ done find $1 -type l | grep -v '/$' | -sed 's|[^/]*||' | +sed "s|$1||" | while read -r name do echo " Delete \"\$INSTDIR$name\"" | sed 's,/,\\,g' @@ -289,7 +289,7 @@ done find $1 -depth -type d | grep -v '/$' | -sed 's|[^/]*||' | +sed "s|$1||" | while read -r name do echo " RMDir \"\$INSTDIR$name\"" | sed 's,/,\\,g' diff --git a/windows/installer_cross/create-freeciv-sdl2-nsi.sh b/windows/installer_cross/create-freeciv-sdl2-nsi.sh index 5270551c26..086924ae5a 100755 --- a/windows/installer_cross/create-freeciv-sdl2-nsi.sh +++ b/windows/installer_cross/create-freeciv-sdl2-nsi.sh @@ -311,7 +311,7 @@ EOF find $1 -type f | grep -v '/$' | -sed 's|[^/]*||' | +sed "s|$1||" | while read -r name do echo " Delete \"\$INSTDIR$name\"" | sed 's,/,\\,g' @@ -319,7 +319,7 @@ done find $1 -type l | grep -v '/$' | -sed 's|[^/]*||' | +sed "s|$1||" | while read -r name do echo " Delete \"\$INSTDIR$name\"" | sed 's,/,\\,g' @@ -327,7 +327,7 @@ done find $1 -depth -type d | grep -v '/$' | -sed 's|[^/]*||' | +sed "s|$1||" | while read -r name do echo " RMDir \"\$INSTDIR$name\"" | sed 's,/,\\,g' -- 2.35.1