From d12afe2678428a1abfc1e56b054e884c8377c7fe Mon Sep 17 00:00:00 2001 From: cazfi Date: Tue, 25 Apr 2017 16:40:28 +0000 Subject: [PATCH] Support VERSION_REVTYPE git builds on cleanup_checkout.sh See hrm Feature #654688 git-svn-id: svn://svn.gna.org/svn/freeciv/branches/S2_6@35292 a0f10bec-cc02-0410-94fc-a9cfff90b4cd --- win32/installer/cleanup_checkout.sh | 4 +++- win32/installer_msys2/cleanup_checkout.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/win32/installer/cleanup_checkout.sh b/win32/installer/cleanup_checkout.sh index 6081878fdf..252f41075f 100755 --- a/win32/installer/cleanup_checkout.sh +++ b/win32/installer/cleanup_checkout.sh @@ -1,6 +1,8 @@ #!/bin/sh -if test "x$VERSION_REVTYPE" = "xsvn" ; then +if test "x$VERSION_REVTYPE" = "xgit" ; then + git checkout $1/translations +elif test "x$VERSION_REVTYPE" = "xsvn" ; then cd $1/translations svn revert -R . fi diff --git a/win32/installer_msys2/cleanup_checkout.sh b/win32/installer_msys2/cleanup_checkout.sh index 6081878fdf..252f41075f 100755 --- a/win32/installer_msys2/cleanup_checkout.sh +++ b/win32/installer_msys2/cleanup_checkout.sh @@ -1,6 +1,8 @@ #!/bin/sh -if test "x$VERSION_REVTYPE" = "xsvn" ; then +if test "x$VERSION_REVTYPE" = "xgit" ; then + git checkout $1/translations +elif test "x$VERSION_REVTYPE" = "xsvn" ; then cd $1/translations svn revert -R . fi -- 2.11.4.GIT