Skip to content

Commit

Permalink
update manual version
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Nov 27, 2022
1 parent d88fcad commit 13fad7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions updateVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
METADIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TXS_VERSION_CPP=`grep TXSVERSION src/utilsVersion.h | head -1 | cut -d " " -f 3 | tr -d "\"" | grep -oE [0-9.]+`
TXS_VERSION_MANPAGE=`grep TH utilities/texstudio.1 | head -1 | cut -d " " -f 5 | tr -d "\""`
TXS_VERSION_MANUAL=`grep release utilities/manual/source/conf.py | head -1 | grep -oE [0-9.]+ | tail -1`
TXS_VERSION_CHANGELOG=`grep TeXstudio utilities/manual/CHANGELOG.txt | head -1 | grep -oE [0-9.]+ | tail -1`
TXS_VERSION_DEBIAN_CHANGELOG=`head -1 debian/changelog | grep -oE [0-9.]+ `
TXS_VERSION_SPEC=`grep Version: utilities/texstudio.spec | head -1 | grep -oE "[0-9.]+"`
Expand All @@ -27,6 +28,11 @@ then
sed -i "s/$TXS_VERSION_MANPAGE/$TXS_VERSION_CPP/" utilities/texstudio.1
sed -i "s/[0-9]\{4\}.-[0-9]\{1,2\}.-[0-9]\{1,2\}/$DT2/" utilities/texstudio.1
fi
if [[ "$TXS_VERSION_CPP" != "$TXS_VERSION_MANUAL" ]];
then
echo "update manual (utilities/manual/source):"
sed -i "s/$TXS_VERSION_MANUAL/$TXS_VERSION_CPP/" utilities/manual/source/conf.py
fi
if [[ $TXS_VERSION_CPP != $TXS_VERSION_CHANGELOG ]]; then
echo "update: CHANGELOG.txt:"
sed -i "1s;^;TeXstudio $TXS_VERSION_CPP\n-----------------\n- \n\n;" utilities/manual/CHANGELOG.txt
Expand Down

0 comments on commit 13fad7f

Please sign in to comment.