democlient: updated build script
This commit is contained in:
parent
8d74d6649d
commit
07b8607bf8
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
# this script downloads and builds the democlient
|
# this script downloads and builds the democlient
|
||||||
# syntax:
|
# syntax:
|
||||||
# ./build 1.56
|
# ./build 1.60.1
|
||||||
|
|
||||||
# cppcheck lib folder
|
# cppcheck lib folder
|
||||||
cppchecklib=cppcheck-$1/lib
|
cppchecklib=cppcheck-$1/lib
|
||||||
|
|
||||||
echo Downloading...
|
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...
|
echo Unpacking...
|
||||||
tar xjvf cppcheck-$1.tar.bz2
|
tar xjvf cppcheck-$1.tar.bz2
|
||||||
|
@ -16,7 +16,7 @@ rm cppcheck-$1.tar.bz2
|
||||||
rm cppcheck-$1/Changelog
|
rm cppcheck-$1/Changelog
|
||||||
|
|
||||||
echo Building...
|
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...
|
echo Copy cgi to webspace...
|
||||||
cp democlient-$1.cgi /home/project-web/cppcheck/cgi-bin/democlient.cgi
|
cp democlient-$1.cgi /home/project-web/cppcheck/cgi-bin/democlient.cgi
|
||||||
|
|
Loading…
Reference in New Issue