Skip to content

Commit

Permalink
Versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Dec 4, 2024
1 parent 493e156 commit 82aaea8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Distributions/build_debian_amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ find ./opt/qtchess -type f -exec chmod g+w {} \;
mkdir -p qtchess-debian/opt
cp -pr ./DEBIAN qtchess-debian/.
cp -r ./opt/qtchess qtchess-debian/opt/.
fakeroot dpkg-deb --build qtchess-debian QtChess-2024.01.10_amd64.deb
fakeroot dpkg-deb --build qtchess-debian QtChess-2024.12.04_amd64.deb
make distclean
rm -fr ./opt
rm -fr ./qtchess-debian
2 changes: 1 addition & 1 deletion Distributions/build_debian_arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ find ./opt/qtchess -type f -exec chmod g+w {} \;
mkdir -p qtchess-debian/opt
cp -pr ./PiOS64 qtchess-debian/DEBIAN
cp -r ./opt/qtchess qtchess-debian/opt/.
fakeroot dpkg-deb --build qtchess-debian QtChess-2024.01.10_arm64.deb
fakeroot dpkg-deb --build qtchess-debian QtChess-2024.12.04_arm64.deb
make distclean
rm -fr ./opt
rm -fr ./qtchess-debian
2 changes: 1 addition & 1 deletion Distributions/build_debian_powerpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ find ./opt/qtchess -type f -exec chmod g+w {} \;
mkdir -p qtchess-debian/opt
cp -pr ./DEBIAN-POWERPC qtchess-debian/DEBIAN
cp -r ./opt/qtchess qtchess-debian/opt/.
fakeroot dpkg-deb --build qtchess-debian QtChess-2024.01.10_powerpc.deb
fakeroot dpkg-deb --build qtchess-debian QtChess-2024.12.04_powerpc.deb
make distclean
rm -fr ./opt
rm -fr ./qtchess-debian
6 changes: 6 additions & 0 deletions qtchess-version.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ for file in */control; do
sed -i "s/Version: .*/Version: $VERSION/" $file
done

for file in Distributions/build*; do
sed -i \
"s/QtChess-[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/QtChess-$VERSION/" \
$file
done

FILE="Source/qtchess.h"

sed -i 's/\(QTCHESS_VERSION "\)[0-9]\+\(\.[0-9]\+\)*"/\1'"$VERSION"'"/' \
Expand Down

0 comments on commit 82aaea8

Please sign in to comment.