1 |
jpp |
1.1 |
diff -Nur --no-dereference smeserver-mock-1.0.old/root/usr/bin/change-log smeserver-mock-1.0/root/usr/bin/change-log |
2 |
|
|
--- smeserver-mock-1.0.old/root/usr/bin/change-log 2022-11-18 13:03:28.025000000 -0500 |
3 |
|
|
+++ smeserver-mock-1.0/root/usr/bin/change-log 2022-11-18 13:16:34.677000000 -0500 |
4 |
|
|
@@ -20,7 +20,7 @@ |
5 |
|
|
#Release: 24 |
6 |
|
|
#Release: 24%{?dist} |
7 |
|
|
rele=0; |
8 |
|
|
-release=`cat $specfile|egrep '^%define (main_)?release'|cut -d " " -f3|cut -d% -f1`; |
9 |
|
|
+release=`cat $specfile|egrep '^%define (main_)?release'|tr '\t' ' ' |cut -d " " -f3|cut -d% -f1`; |
10 |
|
|
if [[ ! $release ]]; then |
11 |
|
|
release=`cat $specfile|egrep '^Release:'|cut -d ":" -f2| tr -d "[:space:]"|cut -d% -f1`; |
12 |
|
|
rele=1; |
13 |
|
|
@@ -29,7 +29,7 @@ |
14 |
|
|
echo "search for version in $specfile"; |
15 |
|
|
#%define version 23 |
16 |
|
|
#Version: 23 |
17 |
|
|
-version=`cat $specfile|grep -i '%define version'|cut -d " " -f3|cut -d% -f1`; |
18 |
|
|
+version=`cat $specfile|grep -i '%define version'|tr '\t' ' ' |cut -d " " -f3|cut -d% -f1`; |
19 |
|
|
if [[ ! $version ]]; then |
20 |
|
|
version=`cat $specfile|egrep '^Version:'|cut -d ":" -f2| tr -d "[:space:]"`; |
21 |
|
|
fi |