blob: c38f45e2c3df37d4e42bc8fb77bdd48ec1614cc8 [file] [log] [blame]
Patrick Williams520786c2023-06-25 16:20:36 -05001Upstream-Status: Inappropriate [No upstream maintenance]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05302
3Signed-off-by: Anne Mulhern <mulhern@yoctoproject.org>
4
5---
6
7Index: Bastille/bin/bastille
8===================================================================
9--- Bastille.orig/bin/bastille
10+++ Bastille/bin/bastille
11@@ -162,11 +162,12 @@ fi
12 # We check that the version is at least the minimum
13
14 PERL_VERSION=`${CURRENT_PERL_PATH}/perl -version |
15- head -2 | # the second line contains the version
16+ head -n 2 | # the second line contains the version
17 tr " " "\n" | # split words into separate lines
18- sed -e "s/^v//" | # to get rid of the v in v5.6.0
19- grep "^[1-9]\." | # find a "word" that starts with number dot
20- sed -e "s/_/./"` # substitute _patchlevel with .patchlevel
21+ grep "^(v" | # find a "word" that starts with '(v'
22+ sed -e "s/^(v//" -e "s/)//" -e "s/_/./"`
23+ # to get rid of the (v in v5.6.0
24+ # substitute _patchlevel with .patchlevel
25 # (used in 5.005_03 and prior)
26
27 # everything before the first .