Skip to content

Commit

Permalink
Nicer format.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Jan 2, 2025
1 parent 5832ec6 commit e0a1a5f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
9 changes: 6 additions & 3 deletions Distributions/build_debian_amd64.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 6 additions & 3 deletions Distributions/build_debian_arm64.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 6 additions & 3 deletions Distributions/build_debian_powerpc.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 6 additions & 3 deletions qtchess-version.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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 <VERSION>."
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
Expand Down

0 comments on commit e0a1a5f

Please sign in to comment.