diff options
Diffstat (limited to 'games-rpg/wastesedge/files/wastesedge-0.3.8_version-handling.patch')
-rw-r--r-- | games-rpg/wastesedge/files/wastesedge-0.3.8_version-handling.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/games-rpg/wastesedge/files/wastesedge-0.3.8_version-handling.patch b/games-rpg/wastesedge/files/wastesedge-0.3.8_version-handling.patch new file mode 100644 index 000000000000..33f3eedad1e5 --- /dev/null +++ b/games-rpg/wastesedge/files/wastesedge-0.3.8_version-handling.patch @@ -0,0 +1,35 @@ +From b3987b74cc6ff89187b95c692a4aacc13db98564 Mon Sep 17 00:00:00 2001 +From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com> +Date: Wed, 9 Sep 2020 20:01:41 +0300 +Subject: [PATCH] Rework adonthell version handling + +--- + configure.ac | 11 +++-------- + 1 file changed, 3 insertions(+), 8 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 76d87bd..fff8268 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -46,15 +46,10 @@ fi + + dnl Checking for the proper version + AC_MSG_CHECKING(for Adonthell's version) +-$adonthell_binary -v &> adonthell.ver + +-changequote(<<, >>) +-adonthell_major_ver=`sed 's/\([0-9]*\)\.[0-9]*\.[0-9]*/\1/p; d' adonthell.ver` +-adonthell_minor_ver=`sed 's/[0-9]*\.\([0-9]*\)\.[0-9]*/\1/p; d' adonthell.ver` +-adonthell_micro_ver=`sed 's/[0-9]*\.[0-9]*\.\([0-9]*\)/\1/p; d' adonthell.ver` +-changequote([, ]) +- +-rm -f adonthell.ver ++adonthell_major_ver=$($adonthell_binary -v | cut -d'.' -f1) ++adonthell_minor_ver=$($adonthell_binary -v | cut -d'.' -f2) ++adonthell_micro_ver=$($adonthell_binary -v | cut -d'.' -f3) + + adonthellver="$adonthell_major_ver.$adonthell_minor_ver.$adonthell_micro_ver" + +-- +2.26.2 + |