From e0a1a5f099d443523ceee6de1491c2c459bb4d72 Mon Sep 17 00:00:00 2001 From: textbrowser Date: Wed, 1 Jan 2025 19:46:20 -0500 Subject: [PATCH] Nicer format. --- Distributions/build_debian_amd64.sh | 9 ++++++--- Distributions/build_debian_arm64.sh | 9 ++++++--- Distributions/build_debian_powerpc.sh | 9 ++++++--- qtchess-version.bash | 9 ++++++--- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/Distributions/build_debian_amd64.sh b/Distributions/build_debian_amd64.sh index 6c6f230..c08d0dd 100755 --- a/Distributions/build_debian_amd64.sh +++ b/Distributions/build_debian_amd64.sh @@ -1,17 +1,20 @@ #!/usr/bin/env sh # Alexis Megas. -if [ ! -x /usr/bin/dpkg-deb ]; then +if [ ! -x /usr/bin/dpkg-deb ] +then echo "Please install dpkg-deb." exit 1 fi -if [ ! -x /usr/bin/fakeroot ]; then +if [ ! -x /usr/bin/fakeroot ] +then echo "Please install fakeroot." exit 1 fi -if [ ! -r qtchess.pro ]; then +if [ ! -r qtchess.pro ] +then echo "Please execute $0 from the primary directory." exit 1 fi diff --git a/Distributions/build_debian_arm64.sh b/Distributions/build_debian_arm64.sh index d421e9f..5bc34bd 100755 --- a/Distributions/build_debian_arm64.sh +++ b/Distributions/build_debian_arm64.sh @@ -1,17 +1,20 @@ #!/usr/bin/env sh # Alexis Megas. -if [ ! -x /usr/bin/dpkg-deb ]; then +if [ ! -x /usr/bin/dpkg-deb ] +then echo "Please install dpkg-deb." exit 1 fi -if [ ! -x /usr/bin/fakeroot ]; then +if [ ! -x /usr/bin/fakeroot ] +then echo "Please install fakeroot." exit 1 fi -if [ ! -r qtchess.pro ]; then +if [ ! -r qtchess.pro ] +then echo "Please execute $0 from the primary directory." exit 1 fi diff --git a/Distributions/build_debian_powerpc.sh b/Distributions/build_debian_powerpc.sh index 27ea9b5..92e6956 100755 --- a/Distributions/build_debian_powerpc.sh +++ b/Distributions/build_debian_powerpc.sh @@ -1,17 +1,20 @@ #!/usr/bin/env sh # Alexis Megas. -if [ ! -x /usr/bin/dpkg-deb ]; then +if [ ! -x /usr/bin/dpkg-deb ] +then echo "Please install dpkg-deb." exit 1 fi -if [ ! -x /usr/bin/fakeroot ]; then +if [ ! -x /usr/bin/fakeroot ] +then echo "Please install fakeroot." exit 1 fi -if [ ! -r qtchess.pro ]; then +if [ ! -r qtchess.pro ] +then echo "Please execute $0 from the primary directory." exit 1 fi diff --git a/qtchess-version.bash b/qtchess-version.bash index 3113884..591d8a4 100755 --- a/qtchess-version.bash +++ b/qtchess-version.bash @@ -4,16 +4,19 @@ echo "The command sed may fail on MacOS." VERSION=$1 -if [ -z "$VERSION" ]; then +if [ -z "$VERSION" ] +then echo "Please specify the version: $0 ." exit 1 fi -for file in */control; do +for file in */control +do sed -i "s/Version: .*/Version: $VERSION/" $file done -for file in Distributions/build*; do +for file in Distributions/build* +do sed -i \ "s/QtChess-[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/QtChess-$VERSION/" \ $file