Merge pull request #1490 from keymanapp/linux-1486-versionproblem

[linux] fix majorversion which broke download window
This commit is contained in:
Daniel Glassey 2019-01-04 10:58:24 +07:00 • committed by GitHub
commit 4e06ae5d79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,13 +8,6 @@
set -e
# maybe don't need dev any more
# from git can determine whether to use current tagnum or next
# and whether to use current.datetime
# see ../test.sh for script to bring in
# maybe make it a function to get the minor number?
BASEDIR=`pwd`
echo "basedir is $BASEDIR"
autotool_projects="kmflcomp libkmfl ibus-kmfl ibus-keyman"
@ -66,11 +59,10 @@ for proj in ${extra_projects}; do
meson ../common/engine/keyboardprocessor keyboardprocessor
fi
if [ "${proj}" == "keyman-config" ]; then
majorvers=`cat ../resources/VERSION.md`
cd keyman-config
make clean
cd keyman_config
sed -e "s/_VERSION_/${newvers}/g" -e "s/_MAJORVERSION_/${majorvers}/g" version.py.in > version.py
sed -e "s/_VERSION_/${newvers}/g" -e "s/_MAJORVERSION_/${oldvers}/g" version.py.in > version.py
fi
cd $BASEDIR
done