cppcheck/democlient/build.sh

26 lines
714 B
Bash
Raw Permalink Normal View History

2012-07-02 19:50:14 +02:00
#!/bin/bash
# this script downloads and builds the democlient
# syntax:
2013-07-06 21:43:11 +02:00
# ./build 1.60.1
# cppcheck lib folder
cppchecklib=cppcheck-$1/lib
echo Downloading...
2013-07-06 21:43:11 +02:00
wget http://downloads.sourceforge.net/project/cppcheck/cppcheck/$1/cppcheck-$1.tar.bz2
echo Unpacking...
tar xjvf cppcheck-$1.tar.bz2
rm cppcheck-$1.tar.bz2
rm cppcheck-$1/Changelog
echo Building...
g++ -O2 -o democlient-$1.cgi -I$cppchecklib -Icppcheck-$1/externals/tinyxml2 cppcheck-$1/democlient/democlient.cpp $cppchecklib/*.cpp cppcheck-$1/externals/tinyxml2/tinyxml2.cpp
echo Copy cgi to webspace...
cp democlient-$1.cgi /home/project-web/cppcheck/cgi-bin/democlient.cgi
2012-07-02 19:50:14 +02:00
chmod +rx /home/project-web/cppcheck/cgi-bin/democlient.cgi
echo Done!