[Blends-commit] [Git][blends-team/blends][master] 2 commits: avoid using "bc"

Andreas Tille gitlab at salsa.debian.org
Sun Jul 8 17:01:33 BST 2018


Andreas Tille pushed to branch master at Debian Blends Team / blends


Commits:
eaff0baa by Lars Kruse at 2018-07-08T15:40:50+00:00
avoid using "bc"
- - - - -
34279f70 by Andreas Tille at 2018-07-08T16:01:30+00:00
Merge branch 'patch-1' into 'master'

avoid using "bc"

See merge request blends-team/blends!1
- - - - -


1 changed file:

- devtools/Makefile


Changes:

=====================================
devtools/Makefile
=====================================
--- a/devtools/Makefile
+++ b/devtools/Makefile
@@ -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))
 



View it on GitLab: https://salsa.debian.org/blends-team/blends/compare/6cf891d71169149eb6c274cbb2ce31870a807a3b...34279f7094c94212a3f6f9b33c6692b576b3a0c5

-- 
View it on GitLab: https://salsa.debian.org/blends-team/blends/compare/6cf891d71169149eb6c274cbb2ce31870a807a3b...34279f7094c94212a3f6f9b33c6692b576b3a0c5
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/blends-commit/attachments/20180708/83337ea0/attachment.html>


More information about the Blends-commit mailing list