Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
avoid using "bc"
· eaff0baa
Lars Kruse
authored
Jul 08, 2018
eaff0baa
Merge branch 'patch-1' into 'master'
· 34279f70
Andreas Tille
authored
Jul 08, 2018
avoid using "bc" See merge request
!1
34279f70
Show whitespace changes
Inline
Side-by-side
devtools/Makefile
View file @
34279f70
...
...
@@ -41,8 +41,8 @@ LATEST := $(shell echo "$(RELEASES)" | cut -d ' ' -f1)
PREVIOUS
:=
$(
shell
echo
$(
RELEASES
)
|
cut
-d
' '
-f2
)
ifneq
"$(LATEST)" "$(PREVIOUS)"
LINEEND
:=
$(
shell
lineend
=
`
grep
'^
$(
BLEND
)
'
debian/changelog
-n
|
sed
-n
2p |
cut
-d
':'
-f1
`
;
echo
"
$$
lineend - 3
"
| bc
)
LINESTART
:=
$(
shell
linestart
=
`
grep
"* start of automatic changelog entry *"
debian/changelog
-n
|
head
-1
|
awk
'{print $$1
}
'
|
tr
-d
':'
`
;
if
[
-z
"
$$
linestart"
]
;
then
echo
"0"
;
else
echo
"
$$
linestart - 1
"
| bc
;
fi
)
LINEEND
:=
$(
shell
lineend
=
`
grep
'^
$(
BLEND
)
'
debian/changelog
-n
|
sed
-n
2p |
cut
-d
':'
-f1
`
;
echo
"
$$
(
(
lineend - 3
))
"
)
LINESTART
:=
$(
shell
linestart
=
`
grep
"* start of automatic changelog entry *"
debian/changelog
-n
|
head
-1
|
awk
'{print $$1
}
'
|
tr
-d
':'
`
;
if
[
-z
"
$$
linestart"
]
;
then
echo
"0"
;
else
echo
"
$$
(
(
linestart - 1
)
)"
;
fi
)
ISGREATER
:=
$(
shell
expr
$(
LINESTART
)
\>
$(
LINEEND
))
...
...