You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
491 B

#!/bin/bash
MYDIR=$(pwd)
RELEASE=$(grep "QCoreApplication::setApplicationVersion(\"" src/main.cpp |grep -o "\([0-9.]\)\+")
echo "Building version $RELEASE"
if [ -d ../PKControls ]
then
cd ../PKControls
git pull
cd $MYDIR
else
git clone https://codeberg.org/dehnhardt/PKControls.git ../PKControls
fi
if [ "$1" == "build_deb" ]
then
cd ..
qmake -o Makefile PREFIX=../debian/iconnconfig/usr CONFIG+=build_deb iconnconfig/iConnConfig.pro
cd $MYDIR
else
qmake PREFIX=/usr
make
fi