Skip to content

Commit

Permalink
Remove bashisms in Make fragments
Browse files Browse the repository at this point in the history
Signed-off-by; Steve McIntyre <93sam@debian.org>
  • Loading branch information
steve-mcintyre authored and Steve McIntyre committed Nov 4, 2023
1 parent 227435a commit 8fcabb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Make.coverity
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ cov-int : 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)

$(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)" ; \
Expand Down
2 changes: 1 addition & 1 deletion Make.scan-build
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SCAN_RANLIB = $(CROSS_COMPILE)llvm-ranlib
scan-test : ; $(SCAN_BUILD_ERROR)

scan-clean : clean
@if [[ -d scan-results ]]; then rm -rf scan-results && echo "removed 'scan-results'"; fi
@if [ -d scan-results ]; then rm -rf scan-results && echo "removed 'scan-results'"; fi

scan-build : | scan-test
scan-build : clean
Expand Down

0 comments on commit 8fcabb3

Please # to comment.