Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 37 lines (28 sloc) 846 Bytes
#!/bin/sh
FILENAME=localconfig.pri
rm -f ${FILENAME}
touch ${FILENAME}
which pkg-config > /dev/null
if [ $? -eq 0 ]; then
pkg-config --exists contextsubscriber-1.0
if [ $? -eq 0 ]; then
echo DEFINES += HAVE_CONTEXTSUBSCRIBER >> ${FILENAME}
fi
pkg-config --exists qmsystem2
if [ $? -eq 0 ]; then
echo DEFINES += HAVE_QMSYSTEM >> ${FILENAME}
fi
pkg-config --exists libresourceqt1
if [ $? -eq 0 ]; then
echo DEFINES += HAVE_LIBRESOURCEQT >> ${FILENAME}
fi
pkg-config --exists libngf0
if [ $? -eq 0 ]; then
echo DEFINES += HAVE_LIBNGF >> ${FILENAME}
fi
fi
VERSION=`head -n 1 debian/changelog | sed -e "s/.*(\(.*\)[-~].*).*/\1/"`
echo VERSION = ${VERSION} >> ${FILENAME}
echo Configured system-ui as follows:
echo ================================
cat ${FILENAME}