#!/bin/sh # Copyright (c) 2013-2015, Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # # Before to run this script you must set these shell variable : # $EXIVCoverityToken with token of Exiv2 project given by Coverity SCAN # $EXIVCoverityEmail with email address to send SCAN result. # # Coverity Scan bin dir must be appended to PATH variable. # # See this url to see how to prepare your computer with Coverity SCAN tool: # http://scan.coverity.com/projects/297/upload_form cd .. # Manage build sub-dir if [ -d "build.cmake" ]; then rm -rfv ./build.cmake fi if [[ "$OSTYPE" == "linux-gnu" ]]; then ./bootstrap.linux elif [[ "$OSTYPE" == "darwin"* ]]; then ./bootstrap.macports else echo "Unsupported platform..." exit -1 fi # Get active svn branch path to create SCAN import description string svn info | grep "URL" | sed '/svn/{s/.*\(svn.*\)/\1/};' > ./build.cmake/svn_branch.txt desc=$( /dev/null echo "Done. Coverity Scan tarball 'myproject.tgz' is uploaded and ready for analyse." echo "That took approximately $SECONDS seconds to upload."