2012-07-02 19:50:14 +02:00
|
|
|
#!/bin/bash
|
2012-09-08 18:40:47 +02:00
|
|
|
|
|
|
|
# this script downloads and builds the democlient
|
|
|
|
# syntax:
|
2013-07-06 21:43:11 +02:00
|
|
|
# ./build 1.60.1
|
2012-09-08 18:40:47 +02:00
|
|
|
|
|
|
|
# cppcheck lib folder
|
|
|
|
cppchecklib=cppcheck-$1/lib
|
|
|
|
|
2012-09-28 20:25:46 +02:00
|
|
|
echo Downloading...
|
2013-07-06 21:43:11 +02:00
|
|
|
wget http://downloads.sourceforge.net/project/cppcheck/cppcheck/$1/cppcheck-$1.tar.bz2
|
2012-09-08 18:40:47 +02:00
|
|
|
|
2012-09-28 20:25:46 +02:00
|
|
|
echo Unpacking...
|
2012-09-08 18:40:47 +02:00
|
|
|
tar xjvf cppcheck-$1.tar.bz2
|
|
|
|
rm cppcheck-$1.tar.bz2
|
|
|
|
rm cppcheck-$1/Changelog
|
|
|
|
|
2012-09-28 20:25:46 +02:00
|
|
|
echo Building...
|
2020-11-16 09:11:08 +01:00
|
|
|
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
|
2012-09-08 18:40:47 +02:00
|
|
|
|
2012-09-28 20:25:46 +02:00
|
|
|
echo Copy cgi to webspace...
|
2012-09-08 18:40:47 +02:00
|
|
|
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
|
2012-09-08 18:40:47 +02:00
|
|
|
|
|
|
|
echo Done!
|