Windows: check version consistency in packaging script
This commit is contained in:
parent
fcbf8e3907
commit
bce6ab8a4c
@ -76,9 +76,14 @@ RCLS=$RCLW/build-rclstartw-${QTA}-${qtsdir}/${qtsdir}/rclstartw.exe
|
|||||||
|
|
||||||
################
|
################
|
||||||
# Script:
|
# Script:
|
||||||
|
|
||||||
FILTERS=$DESTDIR/Share/filters
|
FILTERS=$DESTDIR/Share/filters
|
||||||
|
|
||||||
|
fatal()
|
||||||
|
{
|
||||||
|
echo $*
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
# checkcopy.
|
# checkcopy.
|
||||||
chkcp()
|
chkcp()
|
||||||
{
|
{
|
||||||
@ -260,6 +265,18 @@ for d in doc examples filters images translations; do
|
|||||||
fatal mkdir $d failed
|
fatal mkdir $d failed
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# First check that the config is ok
|
||||||
|
cmp -s $RCL/common/autoconfig.h $RCL/common/autoconfig-win.h || \
|
||||||
|
fatal autoconfig.h and autoconfig-win.h differ
|
||||||
|
VERSION=`cat $RCL/VERSION`
|
||||||
|
CFVERS=`grep PACKAGE_VERSION $RCL/common/autoconfig.h | \
|
||||||
|
cut -d ' ' -f 3 | sed -e 's/"//g'`
|
||||||
|
test "$VERSION" = "$CFVERS" ||
|
||||||
|
fatal Versions in VERSION and autoconfig.h differ
|
||||||
|
|
||||||
|
echo Packaging version $CFVERS
|
||||||
|
|
||||||
# copyrecoll must stay before copyqt so that windeployqt can do its thing
|
# copyrecoll must stay before copyqt so that windeployqt can do its thing
|
||||||
copyrecoll
|
copyrecoll
|
||||||
copyqt
|
copyqt
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user