Trivial change to remove bashisms in Make.coverity

This commit is contained in:
Steve McIntyre 2021-02-21 15:06:56 +00:00
parent e105392d54
commit 168d42d09d
3 changed files with 29 additions and 0 deletions

2
debian/changelog vendored
View File

@ -9,6 +9,8 @@ shim (15+1613861442.888f5b5-1) unstable; urgency=medium
- fixup_git.patch
- uname.patch
- use_compare_mem_gcc9.patch
* New patches:
+ Trivial change to remove bashisms in Make.coverity
* Switch to using gcc-10 rather than gcc-9. Closes: #978521
-- Steve McIntyre <93sam@debian.org> Sun, 21 Feb 2021 13:50:16 +0100

View File

@ -0,0 +1,26 @@
diff --git a/Make.coverity b/Make.coverity
index 996e826e..a897aa0a 100644
--- a/Make.coverity
+++ b/Make.coverity
@@ -12,7 +12,7 @@ cov-int-all : clean
cov-clean :
@rm -vf $(NAME)-coverity-*.tar.*
- @if [[ -d cov-int ]]; then rm -rf cov-int && echo "removed 'cov-int'"; fi
+ @if [ -d cov-int ]; then rm -rf cov-int && echo "removed 'cov-int'"; fi
cov-file : | $(COV_FILE)
@@ -20,9 +20,9 @@ $(COV_FILE) : | cov-int
tar caf $@ cov-int
cov-upload :
- @if [[ -n "$(COV_URL)" ]] && \
- [[ -n "$(COV_TOKEN)" ]] && \
- [[ -n "$(COV_EMAIL)" ]] ; \
+ @if [ -n "$(COV_URL)" ] && \
+ [ -n "$(COV_TOKEN)" ] && \
+ [ -n "$(COV_EMAIL)" ] ; \
then \
echo curl --form token=$(COV_TOKEN) --form email="$(COV_EMAIL)" --form file=@"$(COV_FILE)" --form version=$(VERSION).1 --form description="$(COMMIT_ID)" "$(COV_URL)" ; \
curl --form token=$(COV_TOKEN) --form email="$(COV_EMAIL)" --form file=@"$(COV_FILE)" --form version=$(VERSION).1 --form description="$(COMMIT_ID)" "$(COV_URL)" ; \

View File

@ -0,0 +1 @@
fix-Make.coverity-bashisms.patch