democlient: updated build script

This commit is contained in:
XhmikosR 2013-07-06 21:43:11 +02:00 committed by Daniel Marjamäki
parent 8d74d6649d
commit 07b8607bf8
1 changed files with 3 additions and 3 deletions

View File

@ -2,13 +2,13 @@
# this script downloads and builds the democlient
# syntax:
# ./build 1.56
# ./build 1.60.1
# cppcheck lib folder
cppchecklib=cppcheck-$1/lib
echo Downloading...
wget https://downloads.sourceforge.net/project/cppcheck/cppcheck/$1/cppcheck-$1.tar.bz2
wget http://downloads.sourceforge.net/project/cppcheck/cppcheck/$1/cppcheck-$1.tar.bz2
echo Unpacking...
tar xjvf cppcheck-$1.tar.bz2
@ -16,7 +16,7 @@ rm cppcheck-$1.tar.bz2
rm cppcheck-$1/Changelog
echo Building...
g++ -O2 -o democlient-$1.cgi -I$cppchecklib cppcheck-$1/democlient/democlient.cpp $cppchecklib/*.cpp
g++ -O2 -o democlient-$1.cgi -I$cppchecklib -Icppcheck-$1/externals/tinyxml cppcheck-$1/democlient/democlient.cpp $cppchecklib/*.cpp cppcheck-$1/externals/tinyxml/tinyxml2.cpp
echo Copy cgi to webspace...
cp democlient-$1.cgi /home/project-web/cppcheck/cgi-bin/democlient.cgi