summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-02-11 12:01:41 +0000
committerVincent Sanders <vince@kyllikki.org>2016-02-11 12:01:41 +0000
commit90f65814c68b898117ea5cbccfd3221c72074c84 (patch)
tree9f847aeee90faadddaa91ab9f4402ed56e28593f /utils
parent04e61b710f7e09a9c8d5cc6e181e5ce113894be4 (diff)
downloadnetsurf-90f65814c68b898117ea5cbccfd3221c72074c84.tar.gz
netsurf-90f65814c68b898117ea5cbccfd3221c72074c84.tar.bz2
fix coverity build generated tar handling
Diffstat (limited to 'utils')
-rwxr-xr-xutils/coverity-build.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/coverity-build.sh b/utils/coverity-build.sh
index c481cd1ee..b51562f8f 100755
--- a/utils/coverity-build.sh
+++ b/utils/coverity-build.sh
@@ -51,8 +51,10 @@ COVERITY_VERSION=$(git rev-parse HEAD)
export PATH=${PATH}:${COVERITY_PREFIX}/bin
+COVERITY_TAR=coverity-scan.tar
+
# cleanup before we start
-rm -rf cov-int/ covns.tar.gz covns.tar
+rm -rf cov-int/ ${COVERITY_TAR} ${COVERITY_TAR}.gz
for TARGET in ${TARGETS}; do
make clean TARGET=${TARGET}
@@ -63,8 +65,8 @@ for TARGET in ${TARGETS}; do
cov-build --dir cov-int make CCACHE= TARGET=${TARGET}
done
-tar cf coverity-scan.tar cov-int
+tar cf ${COVERITY_TAR} cov-int
-gzip -9 coverity-scan.tar
+gzip -9 ${COVERITY_TAR}
-curl --form "project=${COVERITY_PROJECT}" --form "token=${COVERITY_TOKEN}" --form "email=${COVERITY_USER}" --form "file=@coverity-scan.tar.gz" --form "version=${COVERITY_VERSION}" --form "description=Git Head build" "https://scan.coverity.com/builds?project=${COVERITY_PROJECT}"
+curl --form "project=${COVERITY_PROJECT}" --form "token=${COVERITY_TOKEN}" --form "email=${COVERITY_USER}" --form "file=@${COVERITY_TAR}.gz" --form "version=${COVERITY_VERSION}" --form "description=Git Head build" "https://scan.coverity.com/builds?project=${COVERITY_PROJECT}"