Skip to content

Commit

Permalink
Patch from the dev/build.sh script too
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo committed Jun 13, 2024
1 parent c60bb9e commit 53d52af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dev/build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#!/usr/bin/env bash

# Import reusable bits
pushd $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) > /dev/null
pushd "$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" > /dev/null || exit 1
. functions.sh
popd > /dev/null
popd > /dev/null || exit 1

ALIRE_BUILD_JOBS="${ALIRE_BUILD_JOBS:-0}"
export ALIRE_OS=$(get_OS)
ALIRE_OS=$(get_OS); export ALIRE_OS

scripts/version-patcher.sh

echo "Building with ALIRE_OS=$ALIRE_OS..."
gprbuild "-j$ALIRE_BUILD_JOBS" -r -p -P `dirname $0`/../alr_env.gpr "$@"
gprbuild "-j$ALIRE_BUILD_JOBS" -r -p -P "$(dirname $0)/../alr_env.gpr" "$@"

scripts/version-patcher.sh _or_later
6 changes: 6 additions & 0 deletions scripts/version-patcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

set -o errexit

# Exit already if the ALR_VERSION_DONT_PATCH flag is defined
if [ "${ALR_VERSION_DONT_PATCH:-unset}" != "unset" ]; then
echo "Skipping version patching..."
exit 0
fi

bin=support/version_patcher/bin/version_patcher

# If the binary is already in place, do nothing
Expand Down

0 comments on commit 53d52af

Please sign in to comment.