Add script that submits a Coverity scan in an automated way.
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 9 May 2013 08:07:30 +0000 (08:07 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 9 May 2013 08:07:30 +0000 (08:07 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@36255 b3059339-0415-0410-9bf9-f77b7e298cf2

Makefile
TOOLS/coverity.sh [new file with mode: 0755]

index 7ef7df9..ed46065 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -766,6 +766,8 @@ all: $(ALL_PRG-yes)
 %-rc.o: %.rc
        $(WINDRES) -I. $< -o $@
 
+ffmpeglibs: $(FFMPEGLIBS)
+
 $(FFMPEGLIBS): $(FFMPEGFILES) config.h
        $(MAKE) -C ffmpeg $(@:ffmpeg/%=%)
 
diff --git a/TOOLS/coverity.sh b/TOOLS/coverity.sh
new file mode 100755 (executable)
index 0000000..58891ef
--- /dev/null
@@ -0,0 +1,8 @@
+rm -rf cov-int MPlayer.tgz
+make distclean
+svn up
+./configure $MPLAYER_COV_OPTS && make -j5 ffmpeglibs
+"$MPLAYER_COV_PATH"/bin/cov-build --dir cov-int make -j5
+tar -czf MPlayer.tgz cov-int
+curl --form file=@MPlayer.tgz --form project=MPlayer --form password="$MPLAYER_COV_PWD" --form email="$MPLAYER_COV_EMAIL" --form version=2.5 --form description="automated run" http://scan5.coverity.com/cgi-bin/upload.py
+